diff options
author | Markus Goetz <Markus.Goetz@nokia.com> | 2010-10-05 11:35:35 (GMT) |
---|---|---|
committer | Markus Goetz <Markus.Goetz@nokia.com> | 2010-10-05 11:36:32 (GMT) |
commit | 2b47265f59b1874a829aff539fe88fb0b70de147 (patch) | |
tree | 3a68c1d13565f3f63a8926fd98758e9cb7d95d61 /src/network/access/qnetworkaccessmanager.cpp | |
parent | dda652beae0de6931071be599f7ee4020a81a499 (diff) | |
download | Qt-2b47265f59b1874a829aff539fe88fb0b70de147.zip Qt-2b47265f59b1874a829aff539fe88fb0b70de147.tar.gz Qt-2b47265f59b1874a829aff539fe88fb0b70de147.tar.bz2 |
QNAM: Move out function calls to new variable
Diffstat (limited to 'src/network/access/qnetworkaccessmanager.cpp')
-rw-r--r-- | src/network/access/qnetworkaccessmanager.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/network/access/qnetworkaccessmanager.cpp b/src/network/access/qnetworkaccessmanager.cpp index 85b0f92..8c17916 100644 --- a/src/network/access/qnetworkaccessmanager.cpp +++ b/src/network/access/qnetworkaccessmanager.cpp @@ -946,16 +946,17 @@ QNetworkReply *QNetworkAccessManager::createRequest(QNetworkAccessManager::Opera Q_D(QNetworkAccessManager); bool isLocalFile = req.url().isLocalFile(); + QString scheme = req.url().scheme().toLower(); // fast path for GET on file:// URLs // The QNetworkAccessFileBackend will right now only be used for PUT if ((op == QNetworkAccessManager::GetOperation || op == QNetworkAccessManager::HeadOperation) - && (isLocalFile || req.url().scheme() == QLatin1String("qrc"))) { + && (isLocalFile || scheme == QLatin1String("qrc"))) { return new QNetworkReplyFileImpl(this, req, op); } if ((op == QNetworkAccessManager::GetOperation || op == QNetworkAccessManager::HeadOperation) - && req.url().scheme().toLower() == QLatin1String("data")) { + && scheme == QLatin1String("data")) { return new QNetworkReplyDataImpl(this, req, op); } |