summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-22 19:25:07 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-22 19:25:07 +0000
commit058eb46c9108e8120c06f8a508dbfe5c13a82f96 (patch)
treeed83de5ce2121da890a7f207ecc9c15fedc4c27c /oox
parent3013d986244a916ee5d397db75588f4bc6995d81 (diff)
coverity#1038295 Unchecked dynamic_cast
Change-Id: I80488cc2c5edfaf5e3eb11bed1684d230549a663
Diffstat (limited to 'oox')
-rw-r--r--oox/source/shape/ShapeContextHandler.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/shape/ShapeContextHandler.cxx b/oox/source/shape/ShapeContextHandler.cxx
index 7e6a217bbcbd..6ddce1cdcbc4 100644
--- a/oox/source/shape/ShapeContextHandler.cxx
+++ b/oox/source/shape/ShapeContextHandler.cxx
@@ -476,7 +476,7 @@ ShapeContextHandler::getShape() throw (uno::RuntimeException, std::exception)
}
else if (mxWpsContext.is())
{
- ShapePtr pShape = dynamic_cast<WpsContext*>(mxWpsContext.get())->getShape();
+ ShapePtr pShape = dynamic_cast<WpsContext&>(*mxWpsContext.get()).getShape();
if (pShape)
{
basegfx::B2DHomMatrix aMatrix;