Profiler: Avoid QString->QUrl->QString conversion
authorKai Koehne <kai.koehne@nokia.com>
Wed, 29 Feb 2012 12:29:06 +0000 (13:29 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 1 Mar 2012 12:26:10 +0000 (13:26 +0100)
Change-Id: Ib39b94bf6c76638dce96d6cc20a4a8f307e37878
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
src/declarative/qml/qdeclarativetypeloader.cpp

index 0524d5d..a07e4fb 100644 (file)
@@ -1583,7 +1583,7 @@ void QDeclarativeTypeData::compile()
     m_compiledData = new QDeclarativeCompiledData(typeLoader()->engine());
     m_compiledData->url = finalUrl();
     m_compiledData->name = finalUrlString();
-    QDeclarativeProfilerService::rangeLocation(QDeclarativeProfilerService::Compiling, QUrl(m_compiledData->name),1,1);
+    QDeclarativeProfilerService::rangeLocation(QDeclarativeProfilerService::Compiling, m_compiledData->name,1,1);
     QDeclarativeProfilerService::rangeData(QDeclarativeProfilerService::Compiling, m_compiledData->name);
 
     QDeclarativeCompiler compiler(&scriptParser._pool);