mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
clean code: win return std::string directly
This commit is contained in:
parent
c941a5bfc3
commit
0669455298
|
@ -21,7 +21,7 @@ string encode( wstring const & str )
|
||||||
string encode( string const & str )
|
string encode( string const & str )
|
||||||
{
|
{
|
||||||
#ifdef __WIN32
|
#ifdef __WIN32
|
||||||
return string( str );
|
return str;
|
||||||
#else
|
#else
|
||||||
return string( QString::fromUtf8( str.c_str() ).toLocal8Bit().data() );
|
return string( QString::fromUtf8( str.c_str() ).toLocal8Bit().data() );
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue