#define WORDLIST_H
#include "support/docstring.h"
+#include "support/mute_warning.h"
+
+#include <memory>
namespace lyx {
public:
///
WordList();
- ///
- ~WordList();
-
///
docstring const & word(size_t idx) const;
///
void insert(docstring const & w);
///
void remove(docstring const & w);
-
+
private:
struct Impl;
- Impl * d;
+ std::unique_ptr<Impl> d;
};
-WordList & theWordList();
+LYX_BEGIN_MUTE_GCC_WARNING(dangling-reference)
+WordList & theWordList(std::string const & lang);
+LYX_END_MUTE_GCC_WARNING
} // namespace lyx