*! Fix compilation problems on Windows.

This commit is contained in:
Konstantin Isakov 2009-04-23 12:34:09 +00:00
parent ff4d04b373
commit 5146a9ceb9

View file

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