diff options
-rw-r--r-- | xmloff/source/text/txtexppr.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/text/txtimp.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
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<XMLTextExportPropertySetMapper*>(this); switch( getPropertySetMapper()->GetEntryContextId( rProperty.mnIndex ) ) { @@ -133,7 +133,7 @@ void XMLTextExportPropertySetMapper::handleSpecialItem( sal_uInt32 nIdx ) const { XMLTextExportPropertySetMapper *pThis = - ((XMLTextExportPropertySetMapper *)this); + const_cast<XMLTextExportPropertySetMapper*>(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<XPropertySet> xPropSet(((XMLTextImportHelper *)this)->GetCursor(), UNO_QUERY); + Reference<XPropertySet> xPropSet(const_cast<XMLTextImportHelper*>(this)->GetCursor(), UNO_QUERY); if (xPropSet.is()) { if (xPropSet->getPropertySetInfo()->hasPropertyByName(s_TextFrame)) |