diff --git a/src/wrapaspell.cpp b/src/wrapaspell.cpp index 180218e..e6c9abf 100644 --- a/src/wrapaspell.cpp +++ b/src/wrapaspell.cpp @@ -30,7 +30,7 @@ #include "getword.h" WrapAspell::WrapAspell ( - const wxString lang + const wxString& lang #if !defined(USE_ENCHANT) && defined(__WXMSW__) , const wxString& aspellDataPathParameter, @@ -40,7 +40,7 @@ WrapAspell::WrapAspell ( { #ifdef USE_ENCHANT spell_broker = enchant::Broker::instance(); - spell_checker = spell_broker->request_dict( lang ); + spell_checker = spell_broker->request_dict( std::string ( lang.mb_str() ) ); #else spell_config = new_aspell_config(); diff --git a/src/wrapaspell.h b/src/wrapaspell.h index ca59799..0836f24 100644 --- a/src/wrapaspell.h +++ b/src/wrapaspell.h @@ -38,7 +38,7 @@ class WrapAspell { public: WrapAspell ( - const wxString lang// = "en_US", + const wxString& lang// = "en_US", #if !defined(USE_ENCHANT) && defined(__WXMSW__) , const wxString& aspellDataPathParameter, const wxString& aspellDictPath