X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FWordList.h;h=d21f9c8c7ed6924316482ef3dfdd14dbbe389e71;hb=858c12c6bb850b7ed7a708e3e66fd58ba6f06cb9;hp=d02b0b7b880eeb3d78f49fa2c1d964a015615c8f;hpb=cd5bad62e039629d0642550b9cd64358104b0c66;p=lyx.git diff --git a/src/WordList.h b/src/WordList.h index d02b0b7b88..d21f9c8c7e 100644 --- a/src/WordList.h +++ b/src/WordList.h @@ -17,6 +17,9 @@ namespace lyx { class WordList { + // noncopyable because of pimpl + WordList(WordList const &); + WordList & operator=(WordList const &); public: /// WordList(); @@ -31,13 +34,15 @@ public: void insert(docstring const & w); /// void remove(docstring const & w); - + /// + static void cleanupWordLists(); + private: struct Impl; Impl * d; }; -WordList & theWordList(); +WordList * theWordList(std::string const & lang); } // namespace lyx