mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-18 23:09:42 +01:00
Don't use QRegExp if we can have a built-in function
This commit is contained in:
parent
351a7596a7
commit
4e07c96ecd
@ -538,7 +538,7 @@ Tomahawk::DatabaseImpl::getTrackFids( int tid )
|
||||
QString
|
||||
Tomahawk::DatabaseImpl::sortname( const QString& str, bool replaceArticle )
|
||||
{
|
||||
QString s = str.toLower().trimmed().replace( QRegExp( "[\\s]{2,}" ), " " );
|
||||
QString s = str.simplified().toLower();
|
||||
|
||||
if ( replaceArticle && s.startsWith( "the " ) )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user