summaryrefslogtreecommitdiffstats
path: root/rsc/source/res/rscrange.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-28 19:05:38 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-28 19:09:24 +0100
commitcf54f2a10f128cf5d79397911b5be710e7081963 (patch)
treecbaf1036cfca3572cb5d7b1df7c2f46de99168cb /rsc/source/res/rscrange.cxx
parentClean up C-style casts from pointers to void (diff)
downloadcore-cf54f2a10f128cf5d79397911b5be710e7081963.tar.gz
core-cf54f2a10f128cf5d79397911b5be710e7081963.zip
Clean up C-style casts from pointers to void
Change-Id: I85d6761e72ba2f67a1d67a94cae674cbb271b43f
Diffstat (limited to 'rsc/source/res/rscrange.cxx')
-rw-r--r--rsc/source/res/rscrange.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/rsc/source/res/rscrange.cxx b/rsc/source/res/rscrange.cxx
index 07b914c12ab6..782076250297 100644
--- a/rsc/source/res/rscrange.cxx
+++ b/rsc/source/res/rscrange.cxx
@@ -90,7 +90,7 @@ RSCINST RscRange::Create( RSCINST * pInst, const RSCINST & rDflt,
if( !pInst )
{
aInst.pClass = this;
- aInst.pData = (CLASS_DATA)rtl_allocateMemory( sizeof( RscRangeInst ) );
+ aInst.pData = static_cast<CLASS_DATA>(rtl_allocateMemory( sizeof( RscRangeInst ) ));
}
else
aInst = *pInst;
@@ -202,7 +202,7 @@ RSCINST RscLongRange::Create( RSCINST * pInst, const RSCINST & rDflt,
if( !pInst )
{
aInst.pClass = this;
- aInst.pData = (CLASS_DATA) rtl_allocateMemory( sizeof( RscLongRangeInst ) );
+ aInst.pData = static_cast<CLASS_DATA>(rtl_allocateMemory( sizeof( RscLongRangeInst ) ));
}
else
aInst = *pInst;
@@ -278,7 +278,7 @@ RSCINST RscIdRange::Create( RSCINST * pInst, const RSCINST & rDflt, bool bOwnCla
if( !pInst )
{
aInst.pClass = this;
- aInst.pData = (CLASS_DATA)rtl_allocateMemory( sizeof( RscId ) );
+ aInst.pData = static_cast<CLASS_DATA>(rtl_allocateMemory( sizeof( RscId ) ));
}
else
aInst = *pInst;