summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2009-10-06 09:33:39 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-10-06 09:50:14 (GMT)
commit914cae63fd9045b8ac5877a974551f29eec24d72 (patch)
tree1d0959740156c9569357a2929142cad713d97874 /src
parent7a8503d179e0f9afebb2ca57e824f1be61becf17 (diff)
downloadQt-914cae63fd9045b8ac5877a974551f29eec24d72.zip
Qt-914cae63fd9045b8ac5877a974551f29eec24d72.tar.gz
Qt-914cae63fd9045b8ac5877a974551f29eec24d72.tar.bz2
Faster case-insensitive comparison to "file" in QUrl::toLocalFile
Merge-Request: 1709 Reviewed-By: Thiago Macieira <thiago.macieira@nokia.com>
Diffstat (limited to 'src')
-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 c9a4cf1..c6bb893 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()) {