cppcheck: cstyleCast

Change-Id: I0b5caeac629527112e3c7129b274b076da467d8d
This commit is contained in:
Caolán McNamara
2015-02-10 10:37:55 +00:00
parent bf0c43f0d2
commit b279f8a655
2 changed files with 3 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ void XMLTextExportPropertySetMapper::handleElementItem(
sal_uInt32 nIdx ) const sal_uInt32 nIdx ) const
{ {
XMLTextExportPropertySetMapper *pThis = XMLTextExportPropertySetMapper *pThis =
((XMLTextExportPropertySetMapper *)this); const_cast<XMLTextExportPropertySetMapper*>(this);
switch( getPropertySetMapper()->GetEntryContextId( rProperty.mnIndex ) ) switch( getPropertySetMapper()->GetEntryContextId( rProperty.mnIndex ) )
{ {
@@ -133,7 +133,7 @@ void XMLTextExportPropertySetMapper::handleSpecialItem(
sal_uInt32 nIdx ) const sal_uInt32 nIdx ) const
{ {
XMLTextExportPropertySetMapper *pThis = XMLTextExportPropertySetMapper *pThis =
((XMLTextExportPropertySetMapper *)this); const_cast<XMLTextExportPropertySetMapper*>(this);
switch( getPropertySetMapper()->GetEntryContextId( rProperty.mnIndex ) ) switch( getPropertySetMapper()->GetEntryContextId( rProperty.mnIndex ) )
{ {

View File

@@ -2660,7 +2660,7 @@ bool XMLTextImportHelper::IsInFrame() const
// are we currently in a text frame? yes, if the cursor has a // are we currently in a text frame? yes, if the cursor has a
// TextFrame property and it's non-NULL // 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.is())
{ {
if (xPropSet->getPropertySetInfo()->hasPropertyByName(s_TextFrame)) if (xPropSet->getPropertySetInfo()->hasPropertyByName(s_TextFrame))