Bug #202 wrapaspell.cpp calls enchant::request_dict with wxString

This commit is contained in:
Zane U. Ji 2013-11-04 18:57:32 +08:00
parent 96481c4e9f
commit 649b3593fb
2 changed files with 3 additions and 3 deletions

View File

@ -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();

View File

@ -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