]> git.lyx.org Git - lyx.git/blobdiff - src/WordList.h
Account for old versions of Pygments
[lyx.git] / src / WordList.h
index b7f88fb78f305767c278ec1fe19e1493b87de80b..2afd6cb050c9bb9cc103230c1fd08c7cd5fd86ae 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "support/docstring.h"
 
-#include "Language.h"
+#include <memory>
 
 namespace lyx {
 
@@ -22,9 +22,6 @@ class WordList {
 public:
        ///
        WordList();
-       ///
-       ~WordList();
-
        ///
        docstring const & word(size_t idx) const;
        ///
@@ -33,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<Impl> d;
 };
 
-WordList * theWordList(Language const & lang);
+WordList & theWordList(std::string const & lang);
 
 } // namespace lyx