summaryrefslogtreecommitdiffstats
path: root/xmloff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-01-04 12:46:14 +0100
committerJulien Nabet <serval2412@yahoo.fr>2014-01-04 12:46:59 +0100
commit06824ff1dede6fb2a17417eb934a5d8fc515ee35 (patch)
treea378947803171d9575494abbd36120a55e708390 /xmloff
parentcppcheck: Clarify expression with parentheses (diff)
downloadcore-06824ff1dede6fb2a17417eb934a5d8fc515ee35.tar.gz
core-06824ff1dede6fb2a17417eb934a5d8fc515ee35.zip
cppcheck: const_cast instead of C cast
Change-Id: I9b4a01364ff8b8c82fec687ab0cbd73952b3e237
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/style/PageMasterExportPropMapper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/style/PageMasterExportPropMapper.cxx b/xmloff/source/style/PageMasterExportPropMapper.cxx
index 04faafe26d62..8abdc0a04066 100644
--- a/xmloff/source/style/PageMasterExportPropMapper.cxx
+++ b/xmloff/source/style/PageMasterExportPropMapper.cxx
@@ -231,7 +231,7 @@ void XMLPageMasterExportPropMapper::handleElementItem(
const ::std::vector< XMLPropertyState >* pProperties,
sal_uInt32 nIdx ) const
{
- XMLPageMasterExportPropMapper* pThis = (XMLPageMasterExportPropMapper*) this;
+ XMLPageMasterExportPropMapper* pThis = const_cast<XMLPageMasterExportPropMapper*>(this);
sal_uInt32 nContextId = getPropertySetMapper()->GetEntryContextId( rProperty.mnIndex );
switch( nContextId )