summaryrefslogtreecommitdiffstats
path: root/src/network/kernel
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2010-01-28 16:16:26 (GMT)
committerMarkus Goetz <Markus.Goetz@nokia.com>2010-01-28 16:20:17 (GMT)
commitbc1bf5fa40b56bf2787fbdf10d1612ca5803167e (patch)
tree97ce84ad76c5dc9f92ed7e7aa78b1ac94dab598d /src/network/kernel
parentd381bb257f210432725221952d0a295decd56d91 (diff)
downloadQt-bc1bf5fa40b56bf2787fbdf10d1612ca5803167e.zip
Qt-bc1bf5fa40b56bf2787fbdf10d1612ca5803167e.tar.gz
Qt-bc1bf5fa40b56bf2787fbdf10d1612ca5803167e.tar.bz2
Call cheaper clear() instead of assigning new QString()
Reviewed-by: joao Reviewed-by: Peter Hartmann
Diffstat (limited to 'src/network/kernel')
-rw-r--r--src/network/kernel/qauthenticator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/kernel/qauthenticator.cpp b/src/network/kernel/qauthenticator.cpp
index 193a043..e4023c8 100644
--- a/src/network/kernel/qauthenticator.cpp
+++ b/src/network/kernel/qauthenticator.cpp
@@ -270,7 +270,7 @@ void QAuthenticatorPrivate::parseHttpResponse(const QHttpResponseHeader &header,
break;
case Ntlm:
// #### extract from header
- realm = QString();
+ realm.clear();
break;
case DigestMd5: {
realm = QString::fromLatin1(options.value("realm"));
@@ -281,7 +281,7 @@ void QAuthenticatorPrivate::parseHttpResponse(const QHttpResponseHeader &header,
break;
}
default:
- realm = QString();
+ realm.clear();
challenge = QByteArray();
phase = Invalid;
}