X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FWordList.h;h=5b0488bb04030dc50c469cff0a17091e04ed7b1e;hb=0c7bd9a57f2a308bb9659200eda3b7e45f8d5d3c;hp=d02b0b7b880eeb3d78f49fa2c1d964a015615c8f;hpb=cd5bad62e039629d0642550b9cd64358104b0c66;p=lyx.git diff --git a/src/WordList.h b/src/WordList.h index d02b0b7b88..5b0488bb04 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,13 +30,15 @@ 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(); +WordList * theWordList(std::string const & lang); } // namespace lyx