]> git.lyx.org Git - lyx.git/blobdiff - src/WordList.h
Amend 207eaeee9071cb
[lyx.git] / src / WordList.h
index b802cf098f0d57ca61d8f542a2ff5293d6a6d8cd..9c2eaf1b8e7539ef250b20c887b9e2370ed54a89 100644 (file)
@@ -13,6 +13,9 @@
 #define WORDLIST_H
 
 #include "support/docstring.h"
+#include "support/mute_warning.h"
+
+#include <memory>
 
 namespace lyx {
 
@@ -20,21 +23,24 @@ class WordList {
 public:
        ///
        WordList();
-       ///
-       ~WordList();
-
        ///
        docstring const & word(size_t idx) const;
        ///
        size_t size() const;
        ///
        void insert(docstring const & w);
+       ///
+       void remove(docstring const & w);
 
 private:
-       class Impl;
-       Impl * d;
+       struct Impl;
+       std::unique_ptr<Impl> d;
 };
 
+LYX_BEGIN_MUTE_GCC_WARNING(dangling-reference)
+WordList & theWordList(std::string const & lang);
+LYX_END_MUTE_GCC_WARNING
+
 } // namespace lyx
 
 #endif // WORDLIST_H