X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FWordLangTuple.h;h=b1a31bd90d27509345d2168604cd7239f49f1857;hb=6b651f2ad9f698c01993dcc6e340682c279f1c55;hp=69d2f742f372224c4a0f23313d08278fd78a2273;hpb=44cd0fc9a1687cc63911c7f98d978594458e7813;p=lyx.git diff --git a/src/WordLangTuple.h b/src/WordLangTuple.h index 69d2f742f3..b1a31bd90d 100644 --- a/src/WordLangTuple.h +++ b/src/WordLangTuple.h @@ -12,6 +12,12 @@ #ifndef WORD_LANG_TUPLE_H #define WORD_LANG_TUPLE_H +#include "support/docstring.h" + + +namespace lyx { + + /** * A word and its given language code ("en_US"). * This is used for spellchecking. @@ -20,12 +26,12 @@ class WordLangTuple { public: WordLangTuple() {} - WordLangTuple(std::string const & w, std::string const & c) + WordLangTuple(docstring const & w, std::string const & c) : word_(w), code_(c) {} /// return the word - std::string const & word() const { + docstring const & word() const { return word_; } @@ -36,9 +42,12 @@ public: private: /// the word - std::string word_; + docstring word_; /// language code of word std::string code_; }; + +} // namespace lyx + #endif // WORD_LANG_TUPLE_H