]> git.lyx.org Git - lyx.git/blobdiff - src/WordList.h
unique_ptr and make_unique
[lyx.git] / src / WordList.h
index d02b0b7b880eeb3d78f49fa2c1d964a015615c8f..d21f9c8c7ed6924316482ef3dfdd14dbbe389e71 100644 (file)
@@ -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