From d059f5160e9666e0a27a990d0a27320c83679fcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Fri, 3 Oct 2014 10:28:56 +0100 Subject: [PATCH] coverity#1242479 Dereference null return value Change-Id: Ie9a9a3438408900d4a5e07b50f4e636e06f94026 --- sfx2/source/view/viewfrm.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index 0dac4a7f7d0c..12cbb94c3cb7 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -1624,14 +1624,11 @@ void SfxViewFrame::DoAdjustPosSizePixel //! divide on Inner.../Outer... } } - - bool SfxViewFrameItem::operator==( const SfxPoolItem &rItem ) const { - return PTR_CAST(SfxViewFrameItem, &rItem)->pFrame== pFrame; + return dynamic_cast(rItem).pFrame == pFrame; } - OUString SfxViewFrameItem::GetValueText() const { return OUString();