coverity#1242479 Dereference null return value

Change-Id: Ie9a9a3438408900d4a5e07b50f4e636e06f94026
This commit is contained in:
Caolán McNamara 2014-10-03 10:28:56 +01:00
parent bfe345e8b7
commit d059f5160e

View File

@ -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<const SfxViewFrameItem&>(rItem).pFrame == pFrame;
}
OUString SfxViewFrameItem::GetValueText() const
{
return OUString();