mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-30 17:24:08 +00:00
*! Fix compilation problems on Windows.
This commit is contained in:
parent
ff4d04b373
commit
5146a9ceb9
|
@ -1,5 +1,6 @@
|
||||||
#include "langcoder.hh"
|
#include "langcoder.hh"
|
||||||
#include "folding.hh"
|
#include "folding.hh"
|
||||||
|
#include "wstring_qt.hh"
|
||||||
|
|
||||||
#include <cctype>
|
#include <cctype>
|
||||||
|
|
||||||
|
@ -61,7 +62,7 @@ quint32 LangCoder::findIdForLanguage( gd::wstring const & lang )
|
||||||
|
|
||||||
for( LangCode const * lc = LangCodes; lc->code[ 0 ]; ++lc )
|
for( LangCode const * lc = LangCodes; lc->code[ 0 ]; ++lc )
|
||||||
{
|
{
|
||||||
if( langFolded == Folding::apply( lc->lang.toStdWString() ) )
|
if ( langFolded == Folding::apply( gd::toWString( lc->lang ) ) )
|
||||||
{
|
{
|
||||||
// We've got a match
|
// We've got a match
|
||||||
return code2toInt( lc->code );
|
return code2toInt( lc->code );
|
||||||
|
|
Loading…
Reference in a new issue