X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FWordList.h;h=2afd6cb050c9bb9cc103230c1fd08c7cd5fd86ae;hb=e781628575276d48d71df6ebb44aad56f12d21f4;hp=f57f20b0680b278afda11463460c34578a69c3bf;hpb=f8da042312cf9a563f46e4a767fc3c4ae6ecb764;p=lyx.git diff --git a/src/WordList.h b/src/WordList.h index f57f20b068..2afd6cb050 100644 --- a/src/WordList.h +++ b/src/WordList.h @@ -14,15 +14,14 @@ #include "support/docstring.h" +#include + namespace lyx { class WordList { public: /// WordList(); - /// - ~WordList(); - /// docstring const & word(size_t idx) const; /// @@ -31,15 +30,13 @@ public: void insert(docstring const & w); /// void remove(docstring const & w); - /// - static void cleanupWordLists(); private: struct Impl; - Impl * d; + std::unique_ptr d; }; -WordList * theWordList(std::string const & lang); +WordList & theWordList(std::string const & lang); } // namespace lyx