summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-07-18 14:38:18 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-07-18 15:36:19 +0100
commit25ffd3fad8d38295ebcf7cc0212dcb268ef68fdb (patch)
tree0cb7ff83c5900ecb3530f6accd741c8cc4710570 /oox
parentefa9f14b2a025f8b35a8dc119d6319539f02abd4 (diff)
coverity#1038295 Unchecked dynamic_cast
Change-Id: I0206983f7dd57626a7d33a95d5025af1b12ed9d3
Diffstat (limited to 'oox')
-rw-r--r--oox/source/shape/ShapeContextHandler.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/shape/ShapeContextHandler.cxx b/oox/source/shape/ShapeContextHandler.cxx
index c80afb63670a..d9ae6949bdca 100644
--- a/oox/source/shape/ShapeContextHandler.cxx
+++ b/oox/source/shape/ShapeContextHandler.cxx
@@ -473,7 +473,7 @@ ShapeContextHandler::getShape() throw (uno::RuntimeException, std::exception)
}
else if (mxLockedCanvasContext.is())
{
- ShapePtr pShape = dynamic_cast<LockedCanvasContext*>(mxLockedCanvasContext.get())->getShape();
+ ShapePtr pShape = dynamic_cast<LockedCanvasContext&>(*mxLockedCanvasContext.get()).getShape();
if (pShape)
{
basegfx::B2DHomMatrix aMatrix;
@@ -514,7 +514,7 @@ ShapeContextHandler::getShape() throw (uno::RuntimeException, std::exception)
}
else if (mxWpgContext.is())
{
- ShapePtr pShape = dynamic_cast<WpgContext*>(mxWpgContext.get())->getShape();
+ ShapePtr pShape = dynamic_cast<WpgContext&>(*mxWpgContext.get()).getShape();
if (pShape)
{
basegfx::B2DHomMatrix aMatrix;