summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-10-14 09:20:43 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-10-14 09:20:43 +0100
commitdb4870bc2fa7ccb1be30706cb53b2f73ece772bf (patch)
tree2977d01e227dadc91182c01800c06e7d7d140278 /sfx2
parent309aa845a8e413519d634680aff112a3567e2e61 (diff)
coverity#1326292 Unchecked dynamic_cast
Change-Id: I4fc0282463fdfd3e023dafae5b3184b3e016c624
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/objitem.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/doc/objitem.cxx b/sfx2/source/doc/objitem.cxx
index 81467c3f529f..1b446c4d0ce7 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