X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Faspell.C;h=1d711a3bf40e9e92add4fb09534f89ef8c142419;hb=de161c40b1e8c5896f18f503c12cf29ec57bbf1e;hp=be2dc6ae981734d7c9b29c37948c21142ffca9fc;hpb=201e5bdf707317be29e9b7476e2b97a34e2d0b48;p=lyx.git diff --git a/src/aspell.C b/src/aspell.C index be2dc6ae98..1d711a3bf4 100644 --- a/src/aspell.C +++ b/src/aspell.C @@ -20,6 +20,8 @@ #include +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()); }