clean code:remove old temporary fix

This commit is contained in:
xiaoyifang 2022-04-05 12:19:37 +08:00
parent 98367c83aa
commit c941a5bfc3

View file

@ -10,17 +10,7 @@ namespace gd
wstring toWString( QString const & in )
{
QVector< unsigned int > v = in.toUcs4();
// Fix for QString instance which contains non-BMP characters
// Qt will created unexpected null characters may confuse btree indexer.
// Related: https://bugreports.qt-project.org/browse/QTBUG-25536
int n = v.size();
while ( n > 0 && v[ n - 1 ] == 0 ) n--;
if ( n != v.size() )
v.resize( n );
return wstring( ( const wchar * ) v.constData(), v.size() );
return in.toStdU32String();
}
wstring normalize( const wstring & str )