summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/objitem.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-10 17:01:52 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-10 17:11:51 +0100
commitd1043892df97078546bf9c5ac697bcb65b457cc9 (patch)
tree0219c41b945daaf4ce8e4b6c40b2c2b33a4c9536 /sfx2/source/doc/objitem.cxx
parent02f72c32cf5e33e28d2b2d63d887c8a429ec2a45 (diff)
SfxPoolItem::operator ==, != should return bool
...and SfxEnumItemInterface::HasBoolValue, too. Change-Id: Ia032e3d35a4c3b4c1efdc515ca36e466be03fc0a
Diffstat (limited to 'sfx2/source/doc/objitem.cxx')
-rw-r--r--sfx2/source/doc/objitem.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/doc/objitem.cxx b/sfx2/source/doc/objitem.cxx
index 981afdea5b04..c48fce0663a6 100644
--- a/sfx2/source/doc/objitem.cxx
+++ b/sfx2/source/doc/objitem.cxx
@@ -29,7 +29,7 @@ TYPEINIT1_AUTOFACTORY(SfxObjectItem,SfxPoolItem)
//=========================================================================
-int SfxObjectShellItem::operator==( const SfxPoolItem &rItem ) const
+bool SfxObjectShellItem::operator==( const SfxPoolItem &rItem ) const
{
return PTR_CAST(SfxObjectShellItem, &rItem)->pObjSh == pObjSh;
}
@@ -107,7 +107,7 @@ SfxObjectItem::SfxObjectItem( sal_uInt16 nWhichId, SfxShell *pSh )
//--------------------------------------------------------------------
-int SfxObjectItem::operator==( const SfxPoolItem &rItem ) const
+bool SfxObjectItem::operator==( const SfxPoolItem &rItem ) const
{
SfxObjectItem *pOther = PTR_CAST(SfxObjectItem, &rItem);
return pOther->_pSh == _pSh;