diff --git a/src/word_db.hh b/src/word_db.hh index 313579cd..9ead39b2 100644 --- a/src/word_db.hh +++ b/src/word_db.hh @@ -40,7 +40,9 @@ public: int get_word_occurences(StringView word) const; private: - using LineToWords = Vector; + void update_db(); + void add_words(const WordList& words); + void remove_words(const WordList& words); struct WordInfo { @@ -48,10 +50,7 @@ private: int refcount; }; using WordToInfo = UnorderedMap; - - void update_db(); - void add_words(const WordList& words); - void remove_words(const WordList& words); + using LineToWords = Vector; safe_ptr m_buffer; size_t m_timestamp;