summaryrefslogtreecommitdiff
path: root/kwebapp/urlresolver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kwebapp/urlresolver.cpp')
-rw-r--r--kwebapp/urlresolver.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/kwebapp/urlresolver.cpp b/kwebapp/urlresolver.cpp
index 173dc613..c56e5a94 100644
--- a/kwebapp/urlresolver.cpp
+++ b/kwebapp/urlresolver.cpp
@@ -35,6 +35,11 @@
#include <KProtocolInfo>
#include <KDebug>
+// Qt Includes
+#include <QLatin1String>
+
+#define QL1S(x) QLatin1String(x)
+
// NOTE
// default kurifilter plugin list (at least in my box):
@@ -67,7 +72,7 @@ KUrl UrlResolver::urlFromTextTyped(const QString &typedText)
if (urlFromUserInput.isValid())
{
// ensure http(s) hosts are lower cases
- if (urlFromUserInput.scheme().startsWith("http"))
+ if (urlFromUserInput.scheme().startsWith(QL1S("http")))
{
QString hst = urlFromUserInput.host();
urlFromUserInput.setHost(hst.toLower());