diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-25 14:48:17 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-25 16:56:13 +0100 |
commit | 35d78b36b97db8e3d140841b1b47c937cd4bf9ac (patch) | |
tree | bededaf2f495ec678d734d1a02e2cdd691e797af /chart2 | |
parent | 76617eea54c4ff2b06206e4500b0979852f838c7 (diff) |
coverity#1249459 Unchecked dynamic_cast
Change-Id: I5e212976f1be310c3a802679a0d8b93c2866d591
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/axes/VPolarCoordinateSystem.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/view/axes/VPolarCoordinateSystem.cxx b/chart2/source/view/axes/VPolarCoordinateSystem.cxx index fe5caa467bd7..7ad142175b34 100644 --- a/chart2/source/view/axes/VPolarCoordinateSystem.cxx +++ b/chart2/source/view/axes/VPolarCoordinateSystem.cxx @@ -70,7 +70,7 @@ void VPolarCoordinateSystem::createVAxisList( // note: using xChartDoc itself as XNumberFormatsSupplier would cause // a leak from VPolarAxis due to cyclic reference uno::Reference<util::XNumberFormatsSupplier> const xNumberFormatsSupplier( - dynamic_cast<ChartModel*>(xChartDoc.get())->getNumberFormatsSupplier()); + dynamic_cast<ChartModel&>(*xChartDoc.get()).getNumberFormatsSupplier()); m_aAxisMap.clear(); sal_Int32 nDimensionCount = m_xCooSysModel->getDimension(); |