cppcheck: cstyleCast
Change-Id: I0b5caeac629527112e3c7129b274b076da467d8d
This commit is contained in:
@@ -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 ) )
|
||||||
{
|
{
|
||||||
|
@@ -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))
|
||||||
|
Reference in New Issue
Block a user