diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-09-25 13:11:13 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-09-25 13:14:47 +0100 |
commit | d7fdf70c4433a41debb4729607df081f15b4ed54 (patch) | |
tree | 36f9509a3493ab3d73639ce2d4c1de8471beb164 /cppcanvas | |
parent | cadcbae92323cc715fc7e8241e5b9a6369d20eb8 (diff) |
coverity#1241427 Unchecked dynamic_cast
Change-Id: Ie011d0bcc504c6c17a525abb368e69009a3d2d2e
Diffstat (limited to 'cppcanvas')
-rw-r--r-- | cppcanvas/qa/extras/emfplus/emfplus.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cppcanvas/qa/extras/emfplus/emfplus.cxx b/cppcanvas/qa/extras/emfplus/emfplus.cxx index 68694b4c317c..70ee82795c9f 100644 --- a/cppcanvas/qa/extras/emfplus/emfplus.cxx +++ b/cppcanvas/qa/extras/emfplus/emfplus.cxx @@ -51,6 +51,7 @@ public: { mxComponent = loadFromDesktop(getURLFromSrc(mpTestDocumentPath) + OUString::createFromAscii(pName), "com.sun.star.drawing.DrawingDocument"); SfxBaseModel* pModel = dynamic_cast<SfxBaseModel*>(mxComponent.get()); + CPPUNIT_ASSERT(pModel); SfxObjectShell* pShell = pModel->GetObjectShell(); boost::shared_ptr<GDIMetaFile> pMetaFile = pShell->GetPreviewMetaFile(); BitmapEx aResultBitmap; |