diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-25 14:47:37 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-25 16:56:12 +0100 |
commit | 76617eea54c4ff2b06206e4500b0979852f838c7 (patch) | |
tree | caf4c835639f56d3ddaa2fcec52a43ab1cbef0ca /chart2 | |
parent | cd6bd10c749271d74214275c7e4fac6247b4ee42 (diff) |
coverity#1249460 Unchecked dynamic_cast
Change-Id: I21f85d0e18ab8a30320f3db294efa9fbdd4dd55d
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/axes/VCartesianCoordinateSystem.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/view/axes/VCartesianCoordinateSystem.cxx b/chart2/source/view/axes/VCartesianCoordinateSystem.cxx index 9ca6286bb4b9..4710d5e0a15f 100644 --- a/chart2/source/view/axes/VCartesianCoordinateSystem.cxx +++ b/chart2/source/view/axes/VCartesianCoordinateSystem.cxx @@ -102,7 +102,7 @@ void VCartesianCoordinateSystem::createVAxisList( // note: using xChartDoc itself as XNumberFormatsSupplier would cause // a leak from VCartesianAxis 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(); |