aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/objects/qthttp/qhttpauthenticator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/objects/qthttp/qhttpauthenticator.cpp')
-rw-r--r--src/modules/objects/qthttp/qhttpauthenticator.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/objects/qthttp/qhttpauthenticator.cpp b/src/modules/objects/qthttp/qhttpauthenticator.cpp
index afe462a98..9cb7b8d6a 100644
--- a/src/modules/objects/qthttp/qhttpauthenticator.cpp
+++ b/src/modules/objects/qthttp/qhttpauthenticator.cpp
@@ -132,7 +132,7 @@ static QByteArray qNtlmPhase3(QHttpAuthenticatorPrivate * ctx, const QByteArray
Constructs an empty authentication object
*/
QHttpAuthenticator::QHttpAuthenticator()
- : d(0)
+ : d(nullptr)
{
}
@@ -443,7 +443,7 @@ void QHttpAuthenticatorPrivate::parseHttpResponse(const QList<QPair<QByteArray,
QByteArray QHttpAuthenticatorPrivate::calculateResponse(const QByteArray & requestMethod, const QByteArray & path)
{
QByteArray response;
- const char * methodString = 0;
+ const char * methodString = nullptr;
switch(method)
{
case QHttpAuthenticatorPrivate::None:
@@ -1219,7 +1219,7 @@ QByteArray qEncodeHmacMd5(QByteArray & key, const QByteArray & message)
static QByteArray qCreatev2Hash(const QHttpAuthenticatorPrivate * ctx,
QNtlmPhase3Block * phase3)
{
- Q_ASSERT(phase3 != 0);
+ Q_ASSERT(phase3 != nullptr);
// since v2 Hash is need for both NTLMv2 and LMv2 it is calculated
// only once and stored and reused
if(phase3->v2Hash.size() == 0)
@@ -1277,7 +1277,7 @@ static QByteArray qEncodeNtlmv2Response(const QHttpAuthenticatorPrivate * ctx,
const QNtlmPhase2Block & ch,
QNtlmPhase3Block * phase3)
{
- Q_ASSERT(phase3 != 0);
+ Q_ASSERT(phase3 != nullptr);
// return value stored in phase3
qCreatev2Hash(ctx, phase3);
@@ -1352,7 +1352,7 @@ static QByteArray qEncodeLmv2Response(const QHttpAuthenticatorPrivate * ctx,
const QNtlmPhase2Block & ch,
QNtlmPhase3Block * phase3)
{
- Q_ASSERT(phase3 != 0);
+ Q_ASSERT(phase3 != nullptr);
// return value stored in phase3
qCreatev2Hash(ctx, phase3);