]> git.lyx.org Git - lyx.git/blobdiff - src/WordList.h
Check path of Qt tools if qtchooser is detected
[lyx.git] / src / WordList.h
index d02b0b7b880eeb3d78f49fa2c1d964a015615c8f..5b0488bb04030dc50c469cff0a17091e04ed7b1e 100644 (file)
 
 #include "support/docstring.h"
 
+#include <memory>
+
 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<Impl> d;
 };
 
-WordList & theWordList();
+WordList * theWordList(std::string const & lang);
 
 } // namespace lyx