]> git.lyx.org Git - lyx.git/blobdiff - src/WordLangTuple.h
Fixed some lines that were too long. It compiled afterwards.
[lyx.git] / src / WordLangTuple.h
index 69d2f742f372224c4a0f23313d08278fd78a2273..b1a31bd90d27509345d2168604cd7239f49f1857 100644 (file)
 #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