cppcheck: const_cast instead of C cast

Change-Id: I9b4a01364ff8b8c82fec687ab0cbd73952b3e237
This commit is contained in:
Julien Nabet
2014-01-04 12:46:14 +01:00
parent 980a6e5525
commit 06824ff1de

View File

@@ -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 )