]> git.lyx.org Git - lyx.git/blobdiff - src/aspell.C
move definition of variables to the main cmake file
[lyx.git] / src / aspell.C
index be2dc6ae981734d7c9b29c37948c21142ffca9fc..1d711a3bf40e9e92add4fb09534f89ef8c142419 100644 (file)
@@ -20,6 +20,8 @@
 
 #include <boost/assert.hpp>
 
+using lyx::docstring;
+
 using std::string;
 
 
@@ -132,13 +134,13 @@ string const ASpell::nextMiss()
 }
 
 
-string const ASpell::error()
+docstring const ASpell::error()
 {
        char const * err = 0;
-
+       
        if (spell_error_object && aspell_error_number(spell_error_object) != 0) {
                err = aspell_error_message(spell_error_object);
        }
 
-       return (err ? err : "");
+       return (err ? lyx::from_utf8(err) : docstring());
 }