summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-22 12:03:38 +0200
committerNoel Grandin <noel@peralex.com>2014-10-23 12:36:16 +0200
commit229eed079c675e70118370044ae91a69c60d044e (patch)
treec2d26c6158aa43633f034c9abbebbe18ecc1e565 /reportdesign
parent5f6f57c26ee15787ca2f775f853e57cfc11d666f (diff)
loplugin: cstylecast
Change-Id: If991c0efe1ded6ef6d32b3a722ee87bbe36bf0bf
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/filter/xml/xmlfilter.cxx4
-rw-r--r--reportdesign/source/ui/report/ReportController.cxx4
-rw-r--r--reportdesign/source/ui/report/ReportSection.cxx2
3 files changed, 5 insertions, 5 deletions
diff --git a/reportdesign/source/filter/xml/xmlfilter.cxx b/reportdesign/source/filter/xml/xmlfilter.cxx
index 73b361a3f059..316dd66f8c37 100644
--- a/reportdesign/source/filter/xml/xmlfilter.cxx
+++ b/reportdesign/source/filter/xml/xmlfilter.cxx
@@ -938,9 +938,9 @@ SvXMLImportContext* ORptFilter::CreateStylesContext(const OUString& rLocalName,
{
pContext = new OReportStylesContext(*this, XML_NAMESPACE_OFFICE, rLocalName, xAttrList, bIsAutoStyle);
if (bIsAutoStyle)
- SetAutoStyles((SvXMLStylesContext*)pContext);
+ SetAutoStyles(static_cast<SvXMLStylesContext*>(pContext));
else
- SetStyles((SvXMLStylesContext*)pContext);
+ SetStyles(static_cast<SvXMLStylesContext*>(pContext));
}
return pContext;
}
diff --git a/reportdesign/source/ui/report/ReportController.cxx b/reportdesign/source/ui/report/ReportController.cxx
index 89dbb5a767bd..429997df2d21 100644
--- a/reportdesign/source/ui/report/ReportController.cxx
+++ b/reportdesign/source/ui/report/ReportController.cxx
@@ -1668,7 +1668,7 @@ void OReportController::impl_initialize( )
const ::comphelper::NamedValueCollection& rArguments( getInitParams() );
- rArguments.get_ensureType( (OUString)PROPERTY_REPORTNAME, m_sName );
+ rArguments.get_ensureType( OUString(PROPERTY_REPORTNAME), m_sName );
if ( m_sName.isEmpty() )
rArguments.get_ensureType( "DocumentTitle", m_sName );
@@ -4285,7 +4285,7 @@ void OReportController::openZoomDialog()
if ( !bCancel )
{
- const SvxZoomItem& rZoomItem = (const SvxZoomItem&)pDlg->GetOutputItemSet()->Get( SID_ATTR_ZOOM );
+ const SvxZoomItem& rZoomItem = static_cast<const SvxZoomItem&>(pDlg->GetOutputItemSet()->Get( SID_ATTR_ZOOM ));
m_eZoomType = rZoomItem.GetType();
m_nZoomValue = rZoomItem.GetValue();
if ( m_eZoomType != SVX_ZOOM_PERCENT )
diff --git a/reportdesign/source/ui/report/ReportSection.cxx b/reportdesign/source/ui/report/ReportSection.cxx
index 5111ecc04ba5..5d34c20fed59 100644
--- a/reportdesign/source/ui/report/ReportSection.cxx
+++ b/reportdesign/source/ui/report/ReportSection.cxx
@@ -679,7 +679,7 @@ void OReportSection::createDefault(const OUString& _sType,SdrObject* _pObj)
_pObj->SetMergedItem( SdrTextVertAdjustItem( SDRTEXTVERTADJUST_CENTER ) );
_pObj->SetMergedItem( SdrTextHorzAdjustItem( SDRTEXTHORZADJUST_BLOCK ) );
_pObj->SetMergedItem( makeSdrTextAutoGrowHeightItem( false ) );
- ((SdrObjCustomShape*)_pObj)->MergeDefaultAttributes( &_sType );
+ static_cast<SdrObjCustomShape*>(_pObj)->MergeDefaultAttributes( &_sType );
}
}