From 4f5aa5fab438566475194d2ea2ffa55dd4637c1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCgler?= Date: Tue, 15 Oct 2013 02:58:15 +0200 Subject: [PATCH] Disable debug output in hot path, more QString ctor improvements --- src/plasmaquick/packageurlinterceptor.cpp | 6 +++--- src/plasmaquick/packageurlinterceptor.h | 2 +- src/plasmaquick/private/packageaccessmanager.cpp | 10 +++++----- src/plasmaquick/private/packageaccessmanagerfactory.h | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/plasmaquick/packageurlinterceptor.cpp b/src/plasmaquick/packageurlinterceptor.cpp index 1a2ae5966..211e983a2 100644 --- a/src/plasmaquick/packageurlinterceptor.cpp +++ b/src/plasmaquick/packageurlinterceptor.cpp @@ -84,17 +84,17 @@ QUrl PackageUrlInterceptor::intercept(const QUrl &path, QQmlAbstractUrlIntercept //it's from an import, good //TODO: implement imports whitelist? if (path.path().startsWith(import)) { - qDebug() << "Found import, access granted" << path; + //qDebug() << "Found import, access granted" << path; //check if there is a platform specific file that overrides this import foreach (const QString &platform, KDeclarative::runtimePlatform()) { - qDebug() << "Trying" << platform; + //qDebug() << "Trying" << platform; //search for a platformqml/ path sibling of this import path const QString &platformPath = import+QStringLiteral("/../platformqml/")+platform+path.path().mid(import.length()); const QFile f(platformPath); - qDebug() << "Found a platform specific file:" << QUrl::fromLocalFile(platformPath)<