From e38e19c7348adafb2a8ef48271f4bfd376cc4e1d Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Sat, 18 Oct 2014 11:10:26 +0200 Subject: [PATCH] Compilers know how to optimize strlen --- src/libtomahawk/UrlHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libtomahawk/UrlHandler.cpp b/src/libtomahawk/UrlHandler.cpp index eaa39832d..85957c8a7 100644 --- a/src/libtomahawk/UrlHandler.cpp +++ b/src/libtomahawk/UrlHandler.cpp @@ -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 );