1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-18 11:51:44 +02:00

Compilers know how to optimize strlen

This commit is contained in:
Uwe L. Korn
2014-10-18 11:10:26 +02:00
parent f77a9d9b22
commit e38e19c734

View File

@@ -90,7 +90,7 @@ localFileIODeviceFactory( const Tomahawk::result_ptr&, const QString& url,
IODeviceCallback callback )
{
// ignore "file://" at front of url
QFile* io = new QFile( url.mid( QString( "file://" ).length() ) );
QFile* io = new QFile( url.mid( strlen( "file://" ) ) );
if ( io )
io->open( QIODevice::ReadOnly );