X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FWordLangTuple.h;h=7fd64f4af6c8dcba0bcd81510ac0ab316a467cc3;hb=498f06d43a0f2000c3f704db1ea39fda3c819fe6;hp=d58ca4a7eb854b7ad20d2bb81ffc4ef545d39fc1;hpb=6b5c9696b6669b48062bec96707c78d605e1af58;p=lyx.git diff --git a/src/WordLangTuple.h b/src/WordLangTuple.h index d58ca4a7eb..7fd64f4af6 100644 --- a/src/WordLangTuple.h +++ b/src/WordLangTuple.h @@ -8,28 +8,28 @@ #ifndef WORD_LANG_TUPLE_H #define WORD_LANG_TUPLE_H - -#include -#include "LString.h" - + +#include "LString.h" + /** * A word and its given language code ("en_US"). * This is used for spellchecking. */ class WordLangTuple { public: - WordLangTuple() {}; - + WordLangTuple() {} + WordLangTuple(string const & w, string const & c) - : word_(w), code_(c) {} - + : word_(w), code_(c) + {} + /// return the word - string const word() const { + string const & word() const { return word_; } /// return its language code - string const lang_code() const { + string const & lang_code() const { return code_; } @@ -39,5 +39,5 @@ private: /// language code of word string code_; }; - + #endif // WORD_LANG_TUPLE_H