summaryrefslogtreecommitdiff
path: root/xmloff/source/style/styleexp.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-28 19:08:37 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-28 19:09:29 +0100
commit44b9b27b1ad161191d254f5497e7eb0766854966 (patch)
treec3ddcfcdb6e4c64fa0d019d4d1d03759118b5f10 /xmloff/source/style/styleexp.cxx
parent1bfdea75d23d79e8b0d2d7c1548d716d0ca27488 (diff)
Clean up C-style casts from pointers to void
Change-Id: I962bd44f2ef6204ed2ea51f79b752bd948f67209
Diffstat (limited to 'xmloff/source/style/styleexp.cxx')
-rw-r--r--xmloff/source/style/styleexp.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmloff/source/style/styleexp.cxx b/xmloff/source/style/styleexp.cxx
index 2089fb08748c..43fbab803388 100644
--- a/xmloff/source/style/styleexp.cxx
+++ b/xmloff/source/style/styleexp.cxx
@@ -96,7 +96,7 @@ bool XMLStyleExport::exportStyle(
if( xPropSetInfo->hasPropertyByName( sIsPhysical ) )
{
aAny = xPropSet->getPropertyValue( sIsPhysical );
- if( !*(sal_Bool *)aAny.getValue() )
+ if( !*static_cast<sal_Bool const *>(aAny.getValue()) )
return false;
}
@@ -164,7 +164,7 @@ bool XMLStyleExport::exportStyle(
if( xPropSetInfo->hasPropertyByName( sIsAutoUpdate ) )
{
aAny = xPropSet->getPropertyValue( sIsAutoUpdate );
- if( *(sal_Bool *)aAny.getValue() )
+ if( *static_cast<sal_Bool const *>(aAny.getValue()) )
GetExport().AddAttribute( XML_NAMESPACE_STYLE, XML_AUTO_UPDATE,
XML_TRUE );
}
@@ -472,7 +472,7 @@ void XMLStyleExport::exportStyleFamily(
if( xPropSetInfo->hasPropertyByName( sIsPhysical ) )
{
Any aAny( xPropSet->getPropertyValue( sIsPhysical ) );
- if( !*(sal_Bool *)aAny.getValue() )
+ if( !*static_cast<sal_Bool const *>(aAny.getValue()) )
continue;
}