mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-18 20:04:00 +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 )
|
IODeviceCallback callback )
|
||||||
{
|
{
|
||||||
// ignore "file://" at front of url
|
// 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 )
|
if ( io )
|
||||||
io->open( QIODevice::ReadOnly );
|
io->open( QIODevice::ReadOnly );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user