From ed04c28fe2a8fb9e4eea8907888aa905353096d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCgler?= Date: Fri, 30 Mar 2012 00:42:42 +0200 Subject: [PATCH] Small optimization By Lamarque, forward-ported from plasma-mobile c9c6f5022fe5ccde59456157f18cdec4ab2b46b4 --- declarativeimports/plasmaextracomponents/resourceinstance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/declarativeimports/plasmaextracomponents/resourceinstance.cpp b/declarativeimports/plasmaextracomponents/resourceinstance.cpp index 0e9f3cda9..ddcb96870 100644 --- a/declarativeimports/plasmaextracomponents/resourceinstance.cpp +++ b/declarativeimports/plasmaextracomponents/resourceinstance.cpp @@ -85,7 +85,7 @@ void ResourceInstance::syncWid() m_resourceInstance = new KActivities::ResourceInstance(wid, m_uri, m_mimetype, m_title); } else { - if (m_uri.scheme().startsWith("http") && !m_uri.hasQuery() && m_uri.path().endsWith('/')) { + if (m_uri.scheme().startsWith(QLatin1String("http")) && !m_uri.hasQuery() && m_uri.path().endsWith('/')) { const QString & oldPath = m_uri.path(); m_uri.setPath(oldPath.left(oldPath.length() - 1));