summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-04-18 09:43:58 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-04-18 14:03:12 +0100
commite1184f131bbce6b5856d428743562021e0f69206 (patch)
tree8f1a9042bedb4feec46b268ce0e0bb3a78725710 /vcl
parenta0fc0182efb3ce1daea5cfe70ce2e3a6f4996709 (diff)
cppcheck: cstyleCast
Change-Id: Id3d126c1e5dc21d683c2717e5e16ca0cd64114a5
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/app/svmain.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/app/svmain.cxx b/vcl/source/app/svmain.cxx
index bc0cbecea82c..8e0d1ec35497 100644
--- a/vcl/source/app/svmain.cxx
+++ b/vcl/source/app/svmain.cxx
@@ -610,8 +610,8 @@ static HANDLE hThreadID = 0;
static unsigned __stdcall _threadmain( void *pArgs )
{
OleInitialize( nullptr );
- ((WorkerThreadData*)pArgs)->pWorker( ((WorkerThreadData*)pArgs)->pThreadData );
- delete (WorkerThreadData*)pArgs;
+ static_cast<WorkerThreadData*>(pArgs)->pWorker( static_cast<WorkerThreadData*>(pArgs)->pThreadData );
+ delete static_cast<WorkerThreadData*>(pArgs);
OleUninitialize();
hThreadID = 0;
return 0;