diff options
| author | Maxime Coste <maxime.coste@havok.com> | 2015-01-13 13:57:44 +0000 |
|---|---|---|
| committer | Maxime Coste <maxime.coste@havok.com> | 2015-01-13 13:57:44 +0000 |
| commit | 61619a4d4d82cbf003523cbc4d605dcff99eb6ac (patch) | |
| tree | 42c704fe9e8b2bf60d9bfe043956b06f183532fc /src | |
| parent | 0412487b0c6a5b445ed52f399e82b1ef2293f6be (diff) | |
Style tweak in WordDB
Diffstat (limited to 'src')
| -rw-r--r-- | src/word_db.hh | 9 |
1 files changed, 4 insertions, 5 deletions
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<WordList, MemoryDomain::WordDB>; + 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<InternedString, WordInfo, MemoryDomain::WordDB>; - - void update_db(); - void add_words(const WordList& words); - void remove_words(const WordList& words); + using LineToWords = Vector<WordList, MemoryDomain::WordDB>; safe_ptr<const Buffer> m_buffer; size_t m_timestamp; |
