diff options
author | Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com> | 2009-11-03 07:22:01 (GMT) |
---|---|---|
committer | Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com> | 2009-11-03 07:22:01 (GMT) |
commit | 88f668430023acd3fbad3543a57198a4cf0255c2 (patch) | |
tree | 9d3a083b9e3f38386dea81024d63b3bd5a8d8a57 /src/corelib | |
parent | f72c2d50b6ab7fc4a8ea3524e22de63ca8a366f7 (diff) | |
download | Qt-88f668430023acd3fbad3543a57198a4cf0255c2.zip Qt-88f668430023acd3fbad3543a57198a4cf0255c2.tar.gz Qt-88f668430023acd3fbad3543a57198a4cf0255c2.tar.bz2 |
Fixed compilation on windows.
Reviewed-by: trustme
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/global/qglobal.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/global/qglobal.cpp b/src/corelib/global/qglobal.cpp index 36e15b9..33c6a34 100644 --- a/src/corelib/global/qglobal.cpp +++ b/src/corelib/global/qglobal.cpp @@ -2558,11 +2558,11 @@ void qsrand() *pseed = QDateTime::currentDateTime().toTime_t() + quintptr(&pseed) + serial.fetchAndAddRelaxed(1); - } #if defined(Q_OS_WIN) - // for Windows the srand function must still be called. - srand(*pseed); + // for Windows the srand function must still be called. + srand(*pseed); #endif + } #elif defined(Q_OS_WIN) static unsigned int seed = 0; |