diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-23 16:51:30 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-23 20:37:34 +0100 |
commit | 57223dbe8f38508dcf478961d28ffeaa5cb3c227 (patch) | |
tree | 88476d1f8e83c2bb59a9d27f06ebab6a2081c301 /xmloff | |
parent | b982a0cc7c3c8d668b77a80dde7859f3297752da (diff) |
coverity#1213120 Unchecked dynamic_cast
Change-Id: I170e392fa883936f835f60ec4798548701f2a3d8
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/chart/SchXMLPlotAreaContext.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmloff/source/chart/SchXMLPlotAreaContext.cxx b/xmloff/source/chart/SchXMLPlotAreaContext.cxx index c1045a981d24..9353c80d5e4b 100644 --- a/xmloff/source/chart/SchXMLPlotAreaContext.cxx +++ b/xmloff/source/chart/SchXMLPlotAreaContext.cxx @@ -1018,10 +1018,10 @@ void SetErrorBarStyleProperties( const OUString& rStyleName, uno::Reference< bea const SvXMLStyleContext* pStyle = pStylesCtxt->FindStyleChildContext(rImportHelper.GetChartFamilyID(), rStyleName); - XMLPropStyleContext * pSeriesStyleContext = - const_cast< XMLPropStyleContext * >( dynamic_cast< const XMLPropStyleContext * >( pStyle )); + XMLPropStyleContext &rSeriesStyleContext = + const_cast< XMLPropStyleContext& >( dynamic_cast< const XMLPropStyleContext& >( *pStyle )); - pSeriesStyleContext->FillPropertySet( xBarProp ); + rSeriesStyleContext.FillPropertySet( xBarProp ); } void SetErrorBarPropertiesFromStyleName( const OUString& aStyleName, uno::Reference< beans::XPropertySet> xBarProp, |