diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-10 17:01:52 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-10 17:11:51 +0100 |
commit | d1043892df97078546bf9c5ac697bcb65b457cc9 (patch) | |
tree | 0219c41b945daaf4ce8e4b6c40b2c2b33a4c9536 /basctl/source | |
parent | 02f72c32cf5e33e28d2b2d63d887c8a429ec2a45 (diff) |
SfxPoolItem::operator ==, != should return bool
...and SfxEnumItemInterface::HasBoolValue, too.
Change-Id: Ia032e3d35a4c3b4c1efdc515ca36e466be03fc0a
Diffstat (limited to 'basctl/source')
-rw-r--r-- | basctl/source/basicide/sbxitem.cxx | 2 | ||||
-rw-r--r-- | basctl/source/inc/sbxitem.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/basctl/source/basicide/sbxitem.cxx b/basctl/source/basicide/sbxitem.cxx index 75ff877b192f..7a1f2e935874 100644 --- a/basctl/source/basicide/sbxitem.cxx +++ b/basctl/source/basicide/sbxitem.cxx @@ -57,7 +57,7 @@ SfxPoolItem *SbxItem::Clone(SfxItemPool*) const return new SbxItem(*this); } -int SbxItem::operator==(const SfxPoolItem& rCmp) const +bool SbxItem::operator==(const SfxPoolItem& rCmp) const { SbxItem const* pSbxItem = dynamic_cast<SbxItem const*>(&rCmp); DBG_ASSERT(pSbxItem, "==: no SbxItem!" ); diff --git a/basctl/source/inc/sbxitem.hxx b/basctl/source/inc/sbxitem.hxx index 1d4b224c2cf2..c3c02cc2b64e 100644 --- a/basctl/source/inc/sbxitem.hxx +++ b/basctl/source/inc/sbxitem.hxx @@ -49,7 +49,7 @@ public: SbxItem(sal_uInt16 nWhich, const ScriptDocument& rDocument, const OUString& aLibName, const OUString& aName, const OUString& aMethodName, ItemType eType); virtual SfxPoolItem* Clone(SfxItemPool *pPool = 0) const; - virtual int operator==(const SfxPoolItem&) const; + virtual bool operator==(const SfxPoolItem&) const; ScriptDocument const& GetDocument () const { return m_aDocument; } OUString const& GetLibName () const { return m_aLibName; } |