]> git.lyx.org Git - lyx.git/blobdiff - src/WordList.h
Use context-sensitive command termination
[lyx.git] / src / WordList.h
index d21f9c8c7ed6924316482ef3dfdd14dbbe389e71..5b0488bb04030dc50c469cff0a17091e04ed7b1e 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;
        ///
@@ -39,7 +35,7 @@ public:
 
 private:
        struct Impl;
-       Impl * d;
+       std::unique_ptr<Impl> d;
 };
 
 WordList * theWordList(std::string const & lang);