]> git.lyx.org Git - lyx.git/blobdiff - src/WordList.h
Merge branch 'master' of git.lyx.org:lyx
[lyx.git] / src / WordList.h
index b7f88fb78f305767c278ec1fe19e1493b87de80b..5b0488bb04030dc50c469cff0a17091e04ed7b1e 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;
        ///
@@ -38,10 +35,10 @@ public:
 
 private:
        struct Impl;
-       Impl * d;
+       std::unique_ptr<Impl> d;
 };
 
-WordList * theWordList(Language const & lang);
+WordList * theWordList(std::string const & lang);
 
 } // namespace lyx