[Libreoffice-commits] core.git: sfx2/source
Caolán McNamara
caolanm at redhat.com
Wed Oct 14 01:23:58 PDT 2015
sfx2/source/doc/objitem.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit db4870bc2fa7ccb1be30706cb53b2f73ece772bf
Author: Caolán McNamara <caolanm at 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
More information about the Libreoffice-commits
mailing list