summaryrefslogtreecommitdiff
path: root/rsc/source/res
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-08 16:27:13 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-08 16:27:13 +0200
commite56bec5ccd7bdd91e0389381dc4e2f1e48f2c32d (patch)
tree27fddaf04e20cf3a4eb81b9894d12a5df9ffd6b6 /rsc/source/res
parentf61f7609db7520246346c5c2c1c5c0496e4773ef (diff)
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I27516cc532e46b6e43a2f2f292246f1414e9f9b3
Diffstat (limited to 'rsc/source/res')
-rw-r--r--rsc/source/res/rscclass.cxx4
-rw-r--r--rsc/source/res/rscconst.cxx4
2 files changed, 4 insertions, 4 deletions
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<void *>(pVarTypeList) );
}
RSCCLASS_TYPE RscClass::GetClassType() const
@@ -234,7 +234,7 @@ ERRTYPE RscClass::SetVariable( Atom nVarName,
{
if( pVarTypeList )
{
- pVarTypeList = static_cast<VARTYPE_STRUCT *>(rtl_reallocateMemory( (void *)pVarTypeList,
+ pVarTypeList = static_cast<VARTYPE_STRUCT *>(rtl_reallocateMemory( static_cast<void *>(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<void *>(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<VarEle *>(rtl_reallocateMemory( (void *)pVarArray,
+ pVarArray = static_cast<VarEle *>(rtl_reallocateMemory( static_cast<void *>(pVarArray),
((nEntries +1) * sizeof( VarEle )) ));
else
pVarArray = static_cast<VarEle *>(rtl_allocateMemory( ((nEntries +1) * sizeof( VarEle )) ));