summaryrefslogtreecommitdiff
path: root/rsc/source/res/rscconst.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'rsc/source/res/rscconst.cxx')
-rw-r--r--rsc/source/res/rscconst.cxx4
1 files changed, 2 insertions, 2 deletions
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 )) ));