sfx2/source/doc/objitem.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit db4870bc2fa7ccb1be30706cb53b2f73ece772bf Author: Caolán McNamara <caol...@redhat.com> Date: Wed Oct 14 09:20:43 2015 +0100 coverity#1326292 Unchecked dynamic_cast Change-Id: I4fc0282463fdfd3e023dafae5b3184b3e016c624 diff --git a/sfx2/source/doc/objitem.cxx b/sfx2/source/doc/objitem.cxx index 81467c3..1b446c4 100644 --- a/sfx2/source/doc/objitem.cxx +++ b/sfx2/source/doc/objitem.cxx @@ -27,7 +27,7 @@ TYPEINIT1_AUTOFACTORY(SfxObjectItem,SfxPoolItem) bool SfxObjectShellItem::operator==( const SfxPoolItem &rItem ) const { - return dynamic_cast<const SfxObjectShellItem*>( &rItem )->pObjSh == pObjSh; + return dynamic_cast<const SfxObjectShellItem&>(rItem).pObjSh == pObjSh; } SfxPoolItem* SfxObjectShellItem::Clone( SfxItemPool *) const
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits