diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-22 19:25:07 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-22 19:25:07 +0000 |
commit | 058eb46c9108e8120c06f8a508dbfe5c13a82f96 (patch) | |
tree | ed83de5ce2121da890a7f207ecc9c15fedc4c27c /oox/source/shape | |
parent | 3013d986244a916ee5d397db75588f4bc6995d81 (diff) |
coverity#1038295 Unchecked dynamic_cast
Change-Id: I80488cc2c5edfaf5e3eb11bed1684d230549a663
Diffstat (limited to 'oox/source/shape')
-rw-r--r-- | oox/source/shape/ShapeContextHandler.cxx | 2 |
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; |