Bug #202 wrapaspell.cpp calls enchant::request_dict with wxString
This commit is contained in:
parent
96481c4e9f
commit
649b3593fb
|
@ -30,7 +30,7 @@
|
||||||
#include "getword.h"
|
#include "getword.h"
|
||||||
|
|
||||||
WrapAspell::WrapAspell (
|
WrapAspell::WrapAspell (
|
||||||
const wxString lang
|
const wxString& lang
|
||||||
#if !defined(USE_ENCHANT) && defined(__WXMSW__)
|
#if !defined(USE_ENCHANT) && defined(__WXMSW__)
|
||||||
,
|
,
|
||||||
const wxString& aspellDataPathParameter,
|
const wxString& aspellDataPathParameter,
|
||||||
|
@ -40,7 +40,7 @@ WrapAspell::WrapAspell (
|
||||||
{
|
{
|
||||||
#ifdef USE_ENCHANT
|
#ifdef USE_ENCHANT
|
||||||
spell_broker = enchant::Broker::instance();
|
spell_broker = enchant::Broker::instance();
|
||||||
spell_checker = spell_broker->request_dict( lang );
|
spell_checker = spell_broker->request_dict( std::string ( lang.mb_str() ) );
|
||||||
#else
|
#else
|
||||||
spell_config = new_aspell_config();
|
spell_config = new_aspell_config();
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ class WrapAspell
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
WrapAspell (
|
WrapAspell (
|
||||||
const wxString lang// = "en_US",
|
const wxString& lang// = "en_US",
|
||||||
#if !defined(USE_ENCHANT) && defined(__WXMSW__)
|
#if !defined(USE_ENCHANT) && defined(__WXMSW__)
|
||||||
, const wxString& aspellDataPathParameter,
|
, const wxString& aspellDataPathParameter,
|
||||||
const wxString& aspellDictPath
|
const wxString& aspellDictPath
|
||||||
|
|
Loading…
Reference in New Issue