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:
@@ -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 );
|
||||
|
||||
|
Reference in New Issue
Block a user