OSDN Git Service

compiler warning fix
authorIvailo Monev <xakepa10@gmail.com>
Wed, 6 Jan 2021 05:10:54 +0000 (07:10 +0200)
committerIvailo Monev <xakepa10@gmail.com>
Wed, 6 Jan 2021 05:10:54 +0000 (07:10 +0200)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/core/tools/qsharedpointer.h

index 1c90957..a90dce6 100644 (file)
@@ -152,8 +152,8 @@ namespace QtSharedPointer {
         QAtomicInt strongref;
 
         inline ExternalRefCountData()
-            : strongref(1),
-            weakref(1)
+            : weakref(1),
+            strongref(1)
         {
         }
         inline ExternalRefCountData(Qt::Initialization) { }