QUuid: Also use CoCreateGuid on WinRt/Winphone and WinCE
authorOliver Wolff <oliver.wolff@theqtcompany.com>
Mon, 17 Aug 2015 07:33:28 +0000 (09:33 +0200)
committerOliver Wolff <oliver.wolff@theqtcompany.com>
Wed, 2 Sep 2015 10:21:33 +0000 (10:21 +0000)
Change-Id: Ie44bd50fa1f2d4224f65d08fb4d721c3651b49ac
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
src/corelib/plugin/quuid.cpp

index 812e2c9fb61bf7feb3804e55f08415ee694b34ae..8b6dfc69327531a29592605df2a3e19ebf0b0801 100644 (file)
@@ -891,7 +891,7 @@ bool QUuid::operator>(const QUuid &other) const Q_DECL_NOTHROW
 
     \sa variant(), version()
 */
-#if defined(Q_OS_WIN32)
+#if defined(Q_OS_WIN)
 
 QT_BEGIN_INCLUDE_NAMESPACE
 #include <objbase.h> // For CoCreateGuid
@@ -905,7 +905,7 @@ QUuid QUuid::createUuid()
     return result;
 }
 
-#else // !Q_OS_WIN32
+#else // Q_OS_WIN
 
 QT_BEGIN_INCLUDE_NAMESPACE
 #include "qdatetime.h"
@@ -989,7 +989,7 @@ QUuid QUuid::createUuid()
 
     return result;
 }
-#endif // !Q_OS_WIN32
+#endif // !Q_OS_WIN
 
 /*!
     \fn bool QUuid::operator==(const GUID &guid) const