X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FWordList.h;h=2afd6cb050c9bb9cc103230c1fd08c7cd5fd86ae;hb=62af7ee772f16f154225d2d0b65d77f4376b6001;hp=d21f9c8c7ed6924316482ef3dfdd14dbbe389e71;hpb=41740ea915ee7a95206d780b6256e660cef39c6e;p=lyx.git diff --git a/src/WordList.h b/src/WordList.h index d21f9c8c7e..2afd6cb050 100644 --- a/src/WordList.h +++ b/src/WordList.h @@ -14,18 +14,14 @@ #include "support/docstring.h" +#include + namespace lyx { class WordList { - // noncopyable because of pimpl - WordList(WordList const &); - WordList & operator=(WordList const &); public: /// WordList(); - /// - ~WordList(); - /// docstring const & word(size_t idx) const; /// @@ -34,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