From d659a2076f730e5bbfc5b191d6502d0fb90c320d Mon Sep 17 00:00:00 2001 From: Kris De Gussem Date: Wed, 8 Feb 2012 21:32:09 +0100 Subject: (cppcheck and janitorial tasks:) C-style casting to C++-style casting (bzr r10952) --- src/dom/util/thread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dom/util/thread.cpp') diff --git a/src/dom/util/thread.cpp b/src/dom/util/thread.cpp index e8c06c850..d5368ef59 100644 --- a/src/dom/util/thread.cpp +++ b/src/dom/util/thread.cpp @@ -52,7 +52,7 @@ namespace util static DWORD WINAPI WinThreadFunction(LPVOID context) { - Thread *thread = (Thread *)context; + Thread *thread = static_cast(context); thread->execute(); return 0; } @@ -81,7 +81,7 @@ void Thread::sleep(unsigned long millis) void *PthreadThreadFunction(void *context) { - Thread *thread = (Thread *)context; + Thread *thread = static_cast(context); thread->execute(); return NULL; } -- cgit v1.2.3