From 649b3593fbe0560c6f13f3a0285cce4723bb294b Mon Sep 17 00:00:00 2001 From: "Zane U. Ji" Date: Mon, 4 Nov 2013 18:57:32 +0800 Subject: [PATCH] Bug #202 wrapaspell.cpp calls enchant::request_dict with wxString --- src/wrapaspell.cpp | 4 ++-- src/wrapaspell.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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