summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread/qthread_win.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/thread/qthread_win.cpp')
-rw-r--r--src/corelib/thread/qthread_win.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/corelib/thread/qthread_win.cpp b/src/corelib/thread/qthread_win.cpp
index 98a7f81..ad32d5b 100644
--- a/src/corelib/thread/qthread_win.cpp
+++ b/src/corelib/thread/qthread_win.cpp
@@ -130,7 +130,7 @@ QThreadData *QThreadData::current()
threadData->deref();
}
threadData->isAdopted = true;
- threadData->threadId = (Qt::HANDLE)GetCurrentThreadId();
+ threadData->threadId = reinterpret_cast<Qt::HANDLE>(GetCurrentThreadId());
if (!QCoreApplicationPrivate::theMainThread) {
QCoreApplicationPrivate::theMainThread = threadData->thread;
@@ -145,7 +145,7 @@ QThreadData *QThreadData::current()
FALSE,
DUPLICATE_SAME_ACCESS);
#else
- realHandle = (HANDLE)GetCurrentThreadId();
+ realHandle = reinterpret_cast<HANDLE>(GetCurrentThreadId());
#endif
qt_watch_adopted_thread(realHandle, threadData->thread);
}
@@ -327,7 +327,7 @@ unsigned int __stdcall QT_ENSURE_STACK_ALIGNED_FOR_SSE QThreadPrivate::start(voi
qt_create_tls();
TlsSetValue(qt_current_thread_data_tls_index, data);
- data->threadId = (Qt::HANDLE)GetCurrentThreadId();
+ data->threadId = reinterpret_cast<Qt::HANDLE>(GetCurrentThreadId());
QThread::setTerminationEnabled(false);
@@ -402,7 +402,7 @@ void QThreadPrivate::finish(void *arg, bool lockAnyway)
Qt::HANDLE QThread::currentThreadId()
{
- return (Qt::HANDLE)GetCurrentThreadId();
+ return reinterpret_cast<Qt::HANDLE>(GetCurrentThreadId());
}
int QThread::idealThreadCount()