X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FWordList.h;h=2afd6cb050c9bb9cc103230c1fd08c7cd5fd86ae;hb=1b6ce0e827d58258e84ba2bf0754c6b273b123db;hp=7bef7f34aa3b72b47562e3b8097b8ed91a2b59af;hpb=3efb1572a24043c07a8e54689bd58c5fa7db97e1;p=lyx.git diff --git a/src/WordList.h b/src/WordList.h index 7bef7f34aa..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,13 +30,13 @@ public: void insert(docstring const & w); /// void remove(docstring const & w); - + private: struct Impl; - Impl * d; + std::unique_ptr d; }; -WordList * theWordList(Language const & lang); +WordList & theWordList(std::string const & lang); } // namespace lyx