From b279f8a655bd2e0b82e3096e28efafa63c895ceb Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 10 Feb 2015 10:37:55 +0000 Subject: cppcheck: cstyleCast Change-Id: I0b5caeac629527112e3c7129b274b076da467d8d --- xmloff/source/text/txtexppr.cxx | 4 ++-- xmloff/source/text/txtimp.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'xmloff') diff --git a/xmloff/source/text/txtexppr.cxx b/xmloff/source/text/txtexppr.cxx index dbe9f0c2825f..8709afba5b3f 100644 --- a/xmloff/source/text/txtexppr.cxx +++ b/xmloff/source/text/txtexppr.cxx @@ -49,7 +49,7 @@ void XMLTextExportPropertySetMapper::handleElementItem( sal_uInt32 nIdx ) const { XMLTextExportPropertySetMapper *pThis = - ((XMLTextExportPropertySetMapper *)this); + const_cast(this); switch( getPropertySetMapper()->GetEntryContextId( rProperty.mnIndex ) ) { @@ -133,7 +133,7 @@ void XMLTextExportPropertySetMapper::handleSpecialItem( sal_uInt32 nIdx ) const { XMLTextExportPropertySetMapper *pThis = - ((XMLTextExportPropertySetMapper *)this); + const_cast(this); switch( getPropertySetMapper()->GetEntryContextId( rProperty.mnIndex ) ) { diff --git a/xmloff/source/text/txtimp.cxx b/xmloff/source/text/txtimp.cxx index 7be24938e296..f69baba7fa44 100644 --- a/xmloff/source/text/txtimp.cxx +++ b/xmloff/source/text/txtimp.cxx @@ -2660,7 +2660,7 @@ bool XMLTextImportHelper::IsInFrame() const // are we currently in a text frame? yes, if the cursor has a // TextFrame property and it's non-NULL - Reference xPropSet(((XMLTextImportHelper *)this)->GetCursor(), UNO_QUERY); + Reference xPropSet(const_cast(this)->GetCursor(), UNO_QUERY); if (xPropSet.is()) { if (xPropSet->getPropertySetInfo()->hasPropertyByName(s_TextFrame)) -- cgit