From e56bec5ccd7bdd91e0389381dc4e2f1e48f2c32d Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 8 Jun 2015 16:27:13 +0200 Subject: loplugin:cstylecast: deal with remaining pointer casts Change-Id: I27516cc532e46b6e43a2f2f292246f1414e9f9b3 --- rsc/source/res/rscclass.cxx | 4 ++-- rsc/source/res/rscconst.cxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'rsc/source/res') diff --git a/rsc/source/res/rscclass.cxx b/rsc/source/res/rscclass.cxx index 7d7861b607de..1d365b13b0dc 100644 --- a/rsc/source/res/rscclass.cxx +++ b/rsc/source/res/rscclass.cxx @@ -59,7 +59,7 @@ void RscClass::Pre_dtor() RscClass::~RscClass() { if( pVarTypeList ) - rtl_freeMemory( (void *)pVarTypeList ); + rtl_freeMemory( static_cast(pVarTypeList) ); } RSCCLASS_TYPE RscClass::GetClassType() const @@ -234,7 +234,7 @@ ERRTYPE RscClass::SetVariable( Atom nVarName, { if( pVarTypeList ) { - pVarTypeList = static_cast(rtl_reallocateMemory( (void *)pVarTypeList, + pVarTypeList = static_cast(rtl_reallocateMemory( static_cast(pVarTypeList), ((nEntries +1) * sizeof( VARTYPE_STRUCT )) )); } else diff --git a/rsc/source/res/rscconst.cxx b/rsc/source/res/rscconst.cxx index 77b67475516c..a7a83293d396 100644 --- a/rsc/source/res/rscconst.cxx +++ b/rsc/source/res/rscconst.cxx @@ -36,7 +36,7 @@ RscConst::RscConst( Atom nId, sal_uInt32 nTypeId ) RscConst::~RscConst() { if( pVarArray ) - rtl_freeMemory( (void *)pVarArray ); + rtl_freeMemory( static_cast(pVarArray) ); } RSCCLASS_TYPE RscConst::GetClassType() const @@ -47,7 +47,7 @@ RSCCLASS_TYPE RscConst::GetClassType() const ERRTYPE RscConst::SetConstant( Atom nVarName, sal_Int32 lValue ) { if( pVarArray ) - pVarArray = static_cast(rtl_reallocateMemory( (void *)pVarArray, + pVarArray = static_cast(rtl_reallocateMemory( static_cast(pVarArray), ((nEntries +1) * sizeof( VarEle )) )); else pVarArray = static_cast(rtl_allocateMemory( ((nEntries +1) * sizeof( VarEle )) )); -- cgit