summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2009-10-06 09:33:39 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2009-10-07 02:39:26 (GMT)
commitd4d79ffb8fa16bf2327ac8bc1e1b4acf9797fb37 (patch)
tree2f4259d7e55aa0249d2367c7458ab21105696763
parent3cd593ee216310b507a298e33e91ce0b292fde55 (diff)
downloadQt-d4d79ffb8fa16bf2327ac8bc1e1b4acf9797fb37.zip
Qt-d4d79ffb8fa16bf2327ac8bc1e1b4acf9797fb37.tar.gz
Qt-d4d79ffb8fa16bf2327ac8bc1e1b4acf9797fb37.tar.bz2
Faster case-insensitive comparison to "file" in QUrl::toLocalFile
Merge-Request: 1709 Reviewed-By: Thiago Macieira <thiago.macieira@nokia.com> (cherry picked from commit 914cae63fd9045b8ac5877a974551f29eec24d72)
-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()) {