]> git.lyx.org Git - lyx.git/blobdiff - src/WordList.h
Consider insets that are chars in InsetCollapsable::getNewLabel()
[lyx.git] / src / WordList.h
index f57f20b0680b278afda11463460c34578a69c3bf..2afd6cb050c9bb9cc103230c1fd08c7cd5fd86ae 100644 (file)
 
 #include "support/docstring.h"
 
+#include <memory>
+
 namespace lyx {
 
 class WordList {
 public:
        ///
        WordList();
-       ///
-       ~WordList();
-
        ///
        docstring const & word(size_t idx) const;
        ///
@@ -31,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(std::string const & lang);
+WordList & theWordList(std::string const & lang);
 
 } // namespace lyx