OSDN Git Service

compiler warning fix
authorIvailo Monev <xakepa10@laimg.moc>
Sun, 14 Jul 2019 22:48:44 +0000 (22:48 +0000)
committerIvailo Monev <xakepa10@laimg.moc>
Sun, 14 Jul 2019 22:48:44 +0000 (22:48 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/core/thread/qthread.cpp

index 4ec0c85..1f23eb7 100644 (file)
@@ -49,8 +49,8 @@ QT_BEGIN_NAMESPACE
 */
 
 QThreadData::QThreadData(int initialRefCount)
-    : _ref(initialRefCount), quitNow(false), canWait(true), isAdopted(false),
-        loopLevel(0), threadId(0), thread(0), eventDispatcher(0)
+    : quitNow(false), canWait(true), isAdopted(false), loopLevel(0),
+    threadId(0), thread(0), eventDispatcher(0), _ref(initialRefCount)
 {
     // fprintf(stderr, "QThreadData %p created\n", this);
 }