]> git.lyx.org Git - lyx.git/blobdiff - src/WordList.h
Provide proper fallback if a bibliography processor is not found
[lyx.git] / src / WordList.h
index d02b0b7b880eeb3d78f49fa2c1d964a015615c8f..2afd6cb050c9bb9cc103230c1fd08c7cd5fd86ae 100644 (file)
 
 #include "support/docstring.h"
 
+#include <memory>
+
 namespace lyx {
 
 class WordList {
 public:
        ///
        WordList();
-       ///
-       ~WordList();
-
        ///
        docstring const & word(size_t idx) const;
        ///
@@ -31,13 +30,13 @@ public:
        void insert(docstring const & w);
        ///
        void remove(docstring const & w);
-       
+
 private:
        struct Impl;
-       Impl * d;
+       std::unique_ptr<Impl> d;
 };
 
-WordList & theWordList();
+WordList & theWordList(std::string const & lang);
 
 } // namespace lyx