]> git.lyx.org Git - lyx.git/blobdiff - src/WordList.h
Hack to display section symbol
[lyx.git] / src / WordList.h
index d21f9c8c7ed6924316482ef3dfdd14dbbe389e71..2afd6cb050c9bb9cc103230c1fd08c7cd5fd86ae 100644 (file)
 
 #include "support/docstring.h"
 
+#include <memory>
+
 namespace lyx {
 
 class WordList {
-       // noncopyable because of pimpl
-       WordList(WordList const &);
-       WordList & operator=(WordList const &);
 public:
        ///
        WordList();
-       ///
-       ~WordList();
-
        ///
        docstring const & word(size_t idx) const;
        ///
@@ -34,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