summaryrefslogtreecommitdiff
path: root/toolkit/source/awt/vclxtoolkit.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-28 19:07:54 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-28 19:09:27 +0100
commit93a8ef5a2d3b23b193261177eee4fb13758dd7cc (patch)
tree8d5f077f3bd18378f455025c8ea00b03db762819 /toolkit/source/awt/vclxtoolkit.cxx
parent2828d92eee63a4a5306ef64482bc7d1db3459406 (diff)
Clean up C-style casts from pointers to void
Change-Id: I98cf0c0eee558662d1e3dd20cca99ec1ca8c9a2c
Diffstat (limited to 'toolkit/source/awt/vclxtoolkit.cxx')
-rw-r--r--toolkit/source/awt/vclxtoolkit.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/toolkit/source/awt/vclxtoolkit.cxx b/toolkit/source/awt/vclxtoolkit.cxx
index bbcd62aa0e24..1dce0ddc1cee 100644
--- a/toolkit/source/awt/vclxtoolkit.cxx
+++ b/toolkit/source/awt/vclxtoolkit.cxx
@@ -480,8 +480,8 @@ extern "C"
{
static int SAL_CALL ComponentInfoCompare( const void* pFirst, const void* pSecond)
{
- return( strcmp( ((ComponentInfo*)pFirst)->pName,
- ((ComponentInfo*)pSecond)->pName ) );
+ return( strcmp( static_cast<ComponentInfo const *>(pFirst)->pName,
+ static_cast<ComponentInfo const *>(pSecond)->pName ) );
}
}
@@ -505,11 +505,11 @@ sal_uInt16 ImplGetComponentType( const OUString& rServiceName )
else
aSearch.pName = "window";
- ComponentInfo* pInf = (ComponentInfo*) bsearch( &aSearch,
+ ComponentInfo* pInf = static_cast<ComponentInfo*>(bsearch( &aSearch,
(void*) aComponentInfos,
sizeof( aComponentInfos ) / sizeof( ComponentInfo ),
sizeof( ComponentInfo ),
- ComponentInfoCompare );
+ ComponentInfoCompare ));
return pInf ? pInf->nWinType : 0;
}
@@ -595,7 +595,7 @@ static void SAL_CALL ToolkitWorkerFunction( void* pArgs )
{
osl_setThreadName("VCLXToolkit VCL main thread");
- VCLXToolkit * pTk = (VCLXToolkit *)pArgs;
+ VCLXToolkit * pTk = static_cast<VCLXToolkit *>(pArgs);
bInitedByVCLToolkit = InitVCL();
if( bInitedByVCLToolkit )
{