summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qurl.cpp
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2009-10-06 11:33:39 +0200
committerThiago Macieira <thiago.macieira@nokia.com>2009-10-06 11:50:14 +0200
commit914cae63fd9045b8ac5877a974551f29eec24d72 (patch)
tree1d0959740156c9569357a2929142cad713d97874 /src/corelib/io/qurl.cpp
parent7a8503d179e0f9afebb2ca57e824f1be61becf17 (diff)
Faster case-insensitive comparison to "file" in QUrl::toLocalFile
Merge-Request: 1709 Reviewed-By: Thiago Macieira <thiago.macieira@nokia.com>
Diffstat (limited to 'src/corelib/io/qurl.cpp')
-rw-r--r--src/corelib/io/qurl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qurl.cpp b/src/corelib/io/qurl.cpp
index c9a4cf14d3..c6bb893b97 100644
--- a/src/corelib/io/qurl.cpp
+++ b/src/corelib/io/qurl.cpp
@@ -5941,7 +5941,7 @@ QString QUrl::toLocalFile() const
QString tmp;
QString ourPath = path();
- if (d->scheme.isEmpty() || d->scheme.toLower() == QLatin1String("file")) {
+ if (d->scheme.isEmpty() || QString::compare(d->scheme, QLatin1String("file"), Qt::CaseInsensitive) == 0) {
// magic for shared drive on windows
if (!d->host.isEmpty()) {