QtNetwork: Fix mingw-warnings.
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>
Mon, 21 May 2012 13:35:58 +0000 (15:35 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 22 May 2012 23:04:40 +0000 (01:04 +0200)
Constructor order, use Q_OS_WIN.

Change-Id: Ie45aa9c3aed45437feb66d8ddcfb22530c441435
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
src/network/kernel/qauthenticator.cpp
src/network/kernel/qauthenticator_p.h

index c1df457..9d31594 100644 (file)
@@ -339,12 +339,12 @@ public:
 
 QAuthenticatorPrivate::QAuthenticatorPrivate()
     : method(None)
+    #ifdef Q_OS_WIN
+    , ntlmWindowsHandles(0)
+    #endif
     , hasFailed(false)
     , phase(Start)
     , nonceCount(0)
-#ifdef Q_OS_WIN32
-    , ntlmWindowsHandles(0)
-#endif
 {
     cnonce = QCryptographicHash::hash(QByteArray::number(qrand(), 16) + QByteArray::number(qrand(), 16),
                                       QCryptographicHash::Md5).toHex();
index b842dc3..491e004 100644 (file)
@@ -80,7 +80,7 @@ public:
     Method method;
     QString realm;
     QByteArray challenge;
-#ifdef Q_OS_WIN32
+#ifdef Q_OS_WIN
     QNtlmWindowsHandles *ntlmWindowsHandles;
 #endif
     bool hasFailed; //credentials have been tried but rejected by server.