]> git.lyx.org Git - lyx.git/blobdiff - src/ispell.C
another fix
[lyx.git] / src / ispell.C
index 95dfcf2eb37169a092bfa1fc832b5a19247b5f95..e531795dbe41c08c0e03369221bd8b3c583a86f4 100644 (file)
@@ -49,6 +49,7 @@
 #include "debug.h"
 #include "encoding.h"
 #include "ispell.h"
+#include "WordLangTuple.h"
 
 #ifndef CXX_GLOBAL_CSTD
 using std::strcpy;
@@ -303,13 +304,13 @@ void ISpell::cleanUp()
 }
 
 
-enum ISpell::Result ISpell::check(string const & word)
+enum ISpell::Result ISpell::check(WordLangTuple const & word)
 {
        // FIXME Please rewrite to use string.
 
        Result res;
  
-       ::fputs(word.c_str(), out);
+       ::fputs(word.word().c_str(), out);
        ::fputc('\n', out);
 
        char buf[1024];
@@ -374,18 +375,18 @@ void ISpell::close()
 }
 
 
-void ISpell::insert(string const & word)
+void ISpell::insert(WordLangTuple const & word)
 {
        ::fputc('*', out); // Insert word in personal dictionary
-       ::fputs(word.c_str(), out);
+       ::fputs(word.word().c_str(), out);
        ::fputc('\n', out);
 }
 
 
-void ISpell::accept(string const & word)
+void ISpell::accept(WordLangTuple const & word)
 {
        ::fputc('@', out); // Accept in this session
-       ::fputs(word.c_str(), out);
+       ::fputs(word.word().c_str(), out);
        ::fputc('\n', out);
 }