diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-11-15 09:14:12 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-11-15 10:13:35 +0000 |
commit | c2602c5f0eb6555dc5cbcfc74a02c0e3b0347e37 (patch) | |
tree | 2dd8362119512837f3dde2b580c721a1e4ddc3f9 /sw | |
parent | 44844b60847af68b8b1b91137eb6af4b65979697 (diff) |
coverity#1421163 Unchecked dynamic_cast
and
coverity#1421165 Unchecked dynamic_cast
Change-Id: Iabd9560d41ec3ddbdb7a560b7839024b7749f917
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/tiledrendering/tiledrendering.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/qa/extras/tiledrendering/tiledrendering.cxx b/sw/qa/extras/tiledrendering/tiledrendering.cxx index b55e775d0ba7..91f5f2235901 100644 --- a/sw/qa/extras/tiledrendering/tiledrendering.cxx +++ b/sw/qa/extras/tiledrendering/tiledrendering.cxx @@ -1828,12 +1828,13 @@ void SwTiledRenderingTest::testAllTrackedChanges() // view #1 SwView* pView1 = dynamic_cast<SwView*>(SfxViewShell::Current()); + CPPUNIT_ASSERT(pView1); SwWrtShell* pWrtShell1 = pView1->GetWrtShellPtr(); // view #2 SfxLokHelper::createView(); SwView* pView2 = dynamic_cast<SwView*>(SfxViewShell::Current()); - CPPUNIT_ASSERT(pView1 != pView2); + CPPUNIT_ASSERT(pView2 && pView1 != pView2); SwWrtShell* pWrtShell2 = pView2->GetWrtShellPtr(); // Insert text and reject all { |