clean code: win return std::string directly

This commit is contained in:
xiaoyifang 2022-04-05 12:22:28 +08:00
parent c941a5bfc3
commit 0669455298

View file

@ -21,7 +21,7 @@ string encode( wstring const & str )
string encode( string const & str )
{
#ifdef __WIN32
return string( str );
return str;
#else
return string( QString::fromUtf8( str.c_str() ).toLocal8Bit().data() );
#endif