summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qurl.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2010-02-18 19:52:45 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2010-02-21 16:15:56 (GMT)
commit5d3eb7a1062744afad06882e9a8f59c84fd4e8b7 (patch)
treee233f5b3cc23645515153185aaa439efa6aad152 /src/corelib/io/qurl.cpp
parent8302f412660410775887c6c524aa87fb67aebde1 (diff)
downloadQt-5d3eb7a1062744afad06882e9a8f59c84fd4e8b7.zip
Qt-5d3eb7a1062744afad06882e9a8f59c84fd4e8b7.tar.gz
Qt-5d3eb7a1062744afad06882e9a8f59c84fd4e8b7.tar.bz2
Compile with QT_USE_FAST_OPERATOR_PLUS
Reviewed-by: Joao
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 076cc33..0290fb8 100644
--- a/src/corelib/io/qurl.cpp
+++ b/src/corelib/io/qurl.cpp
@@ -6348,7 +6348,7 @@ QUrl QUrl::fromUserInput(const QString &userInput)
return QUrl::fromLocalFile(trimmedString);
QUrl url = QUrl::fromEncoded(trimmedString.toUtf8(), QUrl::TolerantMode);
- QUrl urlPrepended = QUrl::fromEncoded((QLatin1String("http://") + trimmedString).toUtf8(), QUrl::TolerantMode);
+ QUrl urlPrepended = QUrl::fromEncoded("http://" + trimmedString.toUtf8(), QUrl::TolerantMode);
// Check the most common case of a valid url with scheme and host
// We check if the port would be valid by adding the scheme to handle the case host:port