QUuid: Also use CoCreateGuid on WinRt/Winphone and WinCE
Change-Id: Ie44bd50fa1f2d4224f65d08fb4d721c3651b49ac Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
parent
54dbdc26ba
commit
8981703817
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user