diff options
-rw-r--r-- | sfx2/source/doc/objitem.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sfx2/source/doc/objitem.cxx b/sfx2/source/doc/objitem.cxx index 1b446c4d0ce7..20192a9c16e8 100644 --- a/sfx2/source/doc/objitem.cxx +++ b/sfx2/source/doc/objitem.cxx @@ -88,12 +88,10 @@ SfxObjectItem::SfxObjectItem( sal_uInt16 nWhichId, SfxShell *pSh ) bool SfxObjectItem::operator==( const SfxPoolItem &rItem ) const { - const SfxObjectItem *pOther = dynamic_cast<const SfxObjectItem*>( &rItem ); - return pOther->_pSh == _pSh; + const SfxObjectItem& rOther = dynamic_cast<const SfxObjectItem&>(rItem); + return rOther._pSh == _pSh; } - - SfxPoolItem* SfxObjectItem::Clone( SfxItemPool *) const { return new SfxObjectItem( Which(), _pSh ); |