X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FWordList.h;h=2afd6cb050c9bb9cc103230c1fd08c7cd5fd86ae;hb=125ed160d625368520074f2898c0487d30d46b98;hp=b7f88fb78f305767c278ec1fe19e1493b87de80b;hpb=79716cbcd0ce92126fb200785b54077d8e31fc18;p=lyx.git diff --git a/src/WordList.h b/src/WordList.h index b7f88fb78f..2afd6cb050 100644 --- a/src/WordList.h +++ b/src/WordList.h @@ -14,7 +14,7 @@ #include "support/docstring.h" -#include "Language.h" +#include namespace lyx { @@ -22,9 +22,6 @@ class WordList { public: /// WordList(); - /// - ~WordList(); - /// docstring const & word(size_t idx) const; /// @@ -33,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(Language const & lang); +WordList & theWordList(std::string const & lang); } // namespace lyx