File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class Corrector;
20
20
using SyllableId = int32_t ;
21
21
22
22
struct EdgeProperties : SpellingProperties {
23
- EdgeProperties (SpellingProperties sup) : SpellingProperties(sup) {};
23
+ EdgeProperties (SpellingProperties sup) : SpellingProperties(sup){};
24
24
EdgeProperties () = default ;
25
25
bool is_correction = false ;
26
26
};
Original file line number Diff line number Diff line change @@ -86,6 +86,10 @@ Memory::~Memory() {
86
86
unhandled_key_connection_.disconnect ();
87
87
}
88
88
89
+ void Memory::ResetUserDict () {
90
+ user_dict_.reset ();
91
+ }
92
+
89
93
bool Memory::StartSession () {
90
94
return user_dict_ && user_dict_->NewTransaction ();
91
95
}
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ class Memory {
47
47
UserDictionary* user_dict () const { return user_dict_.get (); }
48
48
49
49
const Language* language () const { return language_.get (); }
50
+ void ResetUserDict ();
50
51
51
52
protected:
52
53
void OnCommit (Context* ctx);
You can’t perform that action at this time.
0 commit comments