summaryrefslogtreecommitdiff
path: root/svx
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 /svx
parent02f72c32cf5e33e28d2b2d63d887c8a429ec2a45 (diff)
SfxPoolItem::operator ==, != should return bool
...and SfxEnumItemInterface::HasBoolValue, too. Change-Id: Ia032e3d35a4c3b4c1efdc515ca36e466be03fc0a
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/optgrid.cxx2
-rw-r--r--svx/source/dialog/rulritem.cxx10
-rw-r--r--svx/source/dialog/svxgrahicitem.cxx2
-rw-r--r--svx/source/form/fmitems.cxx2
-rw-r--r--svx/source/inc/fmitems.hxx2
-rw-r--r--svx/source/items/SmartTagItem.cxx2
-rw-r--r--svx/source/items/algitem.cxx2
-rw-r--r--svx/source/items/chrtitem.cxx2
-rw-r--r--svx/source/items/clipfmtitem.cxx2
-rw-r--r--svx/source/items/customshapeitem.cxx2
-rw-r--r--svx/source/items/drawitem.cxx12
-rw-r--r--svx/source/items/e3ditem.cxx2
-rw-r--r--svx/source/items/galleryitem.cxx2
-rw-r--r--svx/source/items/grfitem.cxx2
-rw-r--r--svx/source/items/hlnkitem.cxx2
-rw-r--r--svx/source/items/numinf.cxx2
-rw-r--r--svx/source/items/ofaitem.cxx2
-rw-r--r--svx/source/items/pageitem.cxx2
-rw-r--r--svx/source/items/viewlayoutitem.cxx2
-rw-r--r--svx/source/items/zoomslideritem.cxx2
-rw-r--r--svx/source/svdraw/svdattr.cxx6
-rw-r--r--svx/source/tbxctrls/grafctrl.cxx2
-rw-r--r--svx/source/xoutdev/xattr.cxx16
-rw-r--r--svx/source/xoutdev/xattr2.cxx2
-rw-r--r--svx/source/xoutdev/xattrbmp.cxx2
25 files changed, 43 insertions, 43 deletions
diff --git a/svx/source/dialog/optgrid.cxx b/svx/source/dialog/optgrid.cxx
index 95350c2373b5..36e792e01f03 100644
--- a/svx/source/dialog/optgrid.cxx
+++ b/svx/source/dialog/optgrid.cxx
@@ -85,7 +85,7 @@ SfxPoolItem* SvxGridItem::Clone( SfxItemPool* ) const
return new SvxGridItem( *this );
}
-int SvxGridItem::operator==( const SfxPoolItem& rAttr ) const
+bool SvxGridItem::operator==( const SfxPoolItem& rAttr ) const
{
DBG_ASSERT( SfxPoolItem::operator==(rAttr), "different types ");
diff --git a/svx/source/dialog/rulritem.cxx b/svx/source/dialog/rulritem.cxx
index 3e5d873f9c5e..2abb3c5981c0 100644
--- a/svx/source/dialog/rulritem.cxx
+++ b/svx/source/dialog/rulritem.cxx
@@ -31,7 +31,7 @@ TYPEINIT1(SvxObjectItem, SfxPoolItem);
/* SvxLongLRSpaceItem */
-int SvxLongLRSpaceItem::operator==( const SfxPoolItem& rCmp) const
+bool SvxLongLRSpaceItem::operator==( const SfxPoolItem& rCmp) const
{
return SfxPoolItem::operator==(rCmp) &&
mlLeft == ((const SvxLongLRSpaceItem &)rCmp).mlLeft &&
@@ -176,7 +176,7 @@ void SvxLongLRSpaceItem::SetRight(long lArgRight)
/* SvxLongULSpaceItem */
-int SvxLongULSpaceItem::operator==( const SfxPoolItem& rCmp) const
+bool SvxLongULSpaceItem::operator==( const SfxPoolItem& rCmp) const
{
return SfxPoolItem::operator==(rCmp) &&
mlLeft == ((const SvxLongULSpaceItem&)rCmp).mlLeft &&
@@ -317,7 +317,7 @@ void SvxLongULSpaceItem::SetLower(long lArgRight)
/* SvxPagePosSizeItem */
-int SvxPagePosSizeItem::operator==( const SfxPoolItem& rCmp) const
+bool SvxPagePosSizeItem::operator==( const SfxPoolItem& rCmp) const
{
return SfxPoolItem::operator==(rCmp) &&
aPos == ((const SvxPagePosSizeItem &)rCmp).aPos &&
@@ -435,7 +435,7 @@ SvxPagePosSizeItem::SvxPagePosSizeItem() :
/* SvxColumnItem */
-int SvxColumnItem::operator==(const SfxPoolItem& rCmp) const
+bool SvxColumnItem::operator==(const SfxPoolItem& rCmp) const
{
if(!SfxPoolItem::operator==(rCmp) ||
nActColumn != ((const SvxColumnItem&)rCmp).nActColumn ||
@@ -742,7 +742,7 @@ sal_Bool SvxColumnItem::IsConsistent() const
return nActColumn < aColumns.size();
}
-int SvxObjectItem::operator==( const SfxPoolItem& rCmp ) const
+bool SvxObjectItem::operator==( const SfxPoolItem& rCmp ) const
{
return SfxPoolItem::operator==(rCmp) &&
nStartX == ((const SvxObjectItem&)rCmp).nStartX &&
diff --git a/svx/source/dialog/svxgrahicitem.cxx b/svx/source/dialog/svxgrahicitem.cxx
index 4fa37b1d343f..f845495a93b6 100644
--- a/svx/source/dialog/svxgrahicitem.cxx
+++ b/svx/source/dialog/svxgrahicitem.cxx
@@ -29,7 +29,7 @@ SvxGraphicItem::SvxGraphicItem( const SvxGraphicItem& rItem)
{
}
-int SvxGraphicItem::operator==( const SfxPoolItem& rItem) const
+bool SvxGraphicItem::operator==( const SfxPoolItem& rItem) const
{
return ((SvxGraphicItem&)rItem).aGraphic == aGraphic;
}
diff --git a/svx/source/form/fmitems.cxx b/svx/source/form/fmitems.cxx
index ed99a105c7d8..6759276e582a 100644
--- a/svx/source/form/fmitems.cxx
+++ b/svx/source/form/fmitems.cxx
@@ -28,7 +28,7 @@
TYPEINIT1(FmInterfaceItem, SfxPoolItem);
//------------------------------------------------------------------------------
-int FmInterfaceItem::operator==( const SfxPoolItem& rAttr ) const
+bool FmInterfaceItem::operator==( const SfxPoolItem& rAttr ) const
{
DBG_ASSERT( SfxPoolItem::operator==(rAttr), "unequal types" );
return( xInterface == ((FmInterfaceItem&)rAttr).GetInterface() );
diff --git a/svx/source/inc/fmitems.hxx b/svx/source/inc/fmitems.hxx
index 98ffc9c6fd96..d01e1e1dad75 100644
--- a/svx/source/inc/fmitems.hxx
+++ b/svx/source/inc/fmitems.hxx
@@ -39,7 +39,7 @@ public:
inline FmInterfaceItem& operator=( const FmInterfaceItem &rCpy );
// "pure virtual Methoden" vom SfxPoolItem
- virtual int operator==( const SfxPoolItem& ) const;
+ virtual bool operator==( const SfxPoolItem& ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const;
diff --git a/svx/source/items/SmartTagItem.cxx b/svx/source/items/SmartTagItem.cxx
index 57c6588e6d70..3fd891d7fad3 100644
--- a/svx/source/items/SmartTagItem.cxx
+++ b/svx/source/items/SmartTagItem.cxx
@@ -66,7 +66,7 @@ bool SvxSmartTagItem::PutValue( const uno::Any& /*rVal*/, sal_uInt8 /* nMemberId
// -----------------------------------------------------------------------
-int SvxSmartTagItem::operator==( const SfxPoolItem& rAttr ) const
+bool SvxSmartTagItem::operator==( const SfxPoolItem& rAttr ) const
{
DBG_ASSERT( SfxPoolItem::operator==(rAttr), "unequal types" );
diff --git a/svx/source/items/algitem.cxx b/svx/source/items/algitem.cxx
index 790190f5458f..ede9f6eab76e 100644
--- a/svx/source/items/algitem.cxx
+++ b/svx/source/items/algitem.cxx
@@ -288,7 +288,7 @@ SfxItemPresentation SvxMarginItem::GetPresentation
//------------------------------------------------------------------------
-int SvxMarginItem::operator==( const SfxPoolItem& rItem ) const
+bool SvxMarginItem::operator==( const SfxPoolItem& rItem ) const
{
DBG_ASSERT( SfxPoolItem::operator==( rItem ), "unequal type" );
diff --git a/svx/source/items/chrtitem.cxx b/svx/source/items/chrtitem.cxx
index d0b38ee773d8..5ec07a2463d9 100644
--- a/svx/source/items/chrtitem.cxx
+++ b/svx/source/items/chrtitem.cxx
@@ -264,7 +264,7 @@ SfxItemPresentation SvxDoubleItem::GetPresentation
// -----------------------------------------------------------------------
-int SvxDoubleItem::operator == (const SfxPoolItem& rItem) const
+bool SvxDoubleItem::operator == (const SfxPoolItem& rItem) const
{
return (((SvxDoubleItem&)rItem).fVal == fVal);
}
diff --git a/svx/source/items/clipfmtitem.cxx b/svx/source/items/clipfmtitem.cxx
index af6236d72645..47537c0a4232 100644
--- a/svx/source/items/clipfmtitem.cxx
+++ b/svx/source/items/clipfmtitem.cxx
@@ -92,7 +92,7 @@ bool SvxClipboardFmtItem::PutValue( const ::com::sun::star::uno::Any& rVal, sal_
return false;
}
-int SvxClipboardFmtItem::operator==( const SfxPoolItem& rComp ) const
+bool SvxClipboardFmtItem::operator==( const SfxPoolItem& rComp ) const
{
const SvxClipboardFmtItem& rCmp = (SvxClipboardFmtItem&)rComp;
if(rCmp.pImpl->aFmtNms.size() != pImpl->aFmtNms.size())
diff --git a/svx/source/items/customshapeitem.cxx b/svx/source/items/customshapeitem.cxx
index e47724d7e6e9..ab67dd275267 100644
--- a/svx/source/items/customshapeitem.cxx
+++ b/svx/source/items/customshapeitem.cxx
@@ -231,7 +231,7 @@ SdrCustomShapeGeometryItem::SdrCustomShapeGeometryItem( SvStream& /*rIn*/, sal_u
}
}
-int SdrCustomShapeGeometryItem::operator==( const SfxPoolItem& rCmp ) const
+bool SdrCustomShapeGeometryItem::operator==( const SfxPoolItem& rCmp ) const
{
int bRet = SfxPoolItem::operator==( rCmp );
if ( bRet )
diff --git a/svx/source/items/drawitem.cxx b/svx/source/items/drawitem.cxx
index 0f497cf601d1..a89cca42ebcf 100644
--- a/svx/source/items/drawitem.cxx
+++ b/svx/source/items/drawitem.cxx
@@ -66,7 +66,7 @@ SfxItemPresentation SvxColorListItem::GetPresentation
return SFX_ITEM_PRESENTATION_NONE;
}
-int SvxColorListItem::operator==( const SfxPoolItem& rItem ) const
+bool SvxColorListItem::operator==( const SfxPoolItem& rItem ) const
{
DBG_ASSERT( SfxPoolItem::operator==( rItem ), "unequal type" );
return ( ( SvxColorListItem& ) rItem).pColorList == pColorList;
@@ -136,7 +136,7 @@ SfxItemPresentation SvxGradientListItem::GetPresentation
}
-int SvxGradientListItem::operator==( const SfxPoolItem& rItem ) const
+bool SvxGradientListItem::operator==( const SfxPoolItem& rItem ) const
{
DBG_ASSERT( SfxPoolItem::operator==( rItem ), "unequal type" );
return ( ( SvxGradientListItem& ) rItem).pGradientList == pGradientList;
@@ -190,7 +190,7 @@ SfxItemPresentation SvxHatchListItem::GetPresentation
}
-int SvxHatchListItem::operator==( const SfxPoolItem& rItem ) const
+bool SvxHatchListItem::operator==( const SfxPoolItem& rItem ) const
{
DBG_ASSERT( SfxPoolItem::operator==( rItem ), "unequal type" );
return ( ( SvxHatchListItem& ) rItem).pHatchList == pHatchList;
@@ -239,7 +239,7 @@ SfxItemPresentation SvxBitmapListItem::GetPresentation
return SFX_ITEM_PRESENTATION_NONE;
}
-int SvxBitmapListItem::operator==( const SfxPoolItem& rItem ) const
+bool SvxBitmapListItem::operator==( const SfxPoolItem& rItem ) const
{
DBG_ASSERT( SfxPoolItem::operator==( rItem ), "unequal type" );
return ( ( SvxBitmapListItem& ) rItem).pBitmapList == pBitmapList;
@@ -287,7 +287,7 @@ SfxItemPresentation SvxDashListItem::GetPresentation
return SFX_ITEM_PRESENTATION_NONE;
}
-int SvxDashListItem::operator==( const SfxPoolItem& rItem ) const
+bool SvxDashListItem::operator==( const SfxPoolItem& rItem ) const
{
DBG_ASSERT( SfxPoolItem::operator==( rItem ), "unequal type" );
return ( ( SvxDashListItem& ) rItem).pDashList == pDashList;
@@ -334,7 +334,7 @@ SfxItemPresentation SvxLineEndListItem::GetPresentation
return SFX_ITEM_PRESENTATION_NONE;
}
-int SvxLineEndListItem::operator==( const SfxPoolItem& rItem ) const
+bool SvxLineEndListItem::operator==( const SfxPoolItem& rItem ) const
{
DBG_ASSERT( SfxPoolItem::operator==( rItem ), "unequal type" );
return ( ( SvxLineEndListItem& ) rItem).pLineEndList == pLineEndList;
diff --git a/svx/source/items/e3ditem.cxx b/svx/source/items/e3ditem.cxx
index 40be011d7033..517e9e41589b 100644
--- a/svx/source/items/e3ditem.cxx
+++ b/svx/source/items/e3ditem.cxx
@@ -66,7 +66,7 @@ SvxB3DVectorItem::SvxB3DVectorItem( const SvxB3DVectorItem& rItem ) :
// -----------------------------------------------------------------------
-int SvxB3DVectorItem::operator==( const SfxPoolItem &rItem ) const
+bool SvxB3DVectorItem::operator==( const SfxPoolItem &rItem ) const
{
DBG_CHKTHIS(SvxB3DVectorItem, 0);
DBG_ASSERT( SfxPoolItem::operator==( rItem ), "unequal type" );
diff --git a/svx/source/items/galleryitem.cxx b/svx/source/items/galleryitem.cxx
index c07ed06c17dc..b626e1a9eaf1 100644
--- a/svx/source/items/galleryitem.cxx
+++ b/svx/source/items/galleryitem.cxx
@@ -126,7 +126,7 @@ bool SvxGalleryItem::PutValue( const css::uno::Any& rVal, sal_uInt8 /* nMemberId
return true;
}
-int SvxGalleryItem::operator==( const SfxPoolItem& rAttr ) const
+bool SvxGalleryItem::operator==( const SfxPoolItem& rAttr ) const
{
DBG_ASSERT( SfxPoolItem::operator==(rAttr), "unequal types" );
diff --git a/svx/source/items/grfitem.cxx b/svx/source/items/grfitem.cxx
index fa8b5778133c..b83cab7c95de 100644
--- a/svx/source/items/grfitem.cxx
+++ b/svx/source/items/grfitem.cxx
@@ -47,7 +47,7 @@ SvxGrfCrop::~SvxGrfCrop()
{
}
-int SvxGrfCrop::operator==( const SfxPoolItem& rAttr ) const
+bool SvxGrfCrop::operator==( const SfxPoolItem& rAttr ) const
{
DBG_ASSERT( SfxPoolItem::operator==( rAttr ), "not equal attributes" );
return nLeft == ((const SvxGrfCrop&)rAttr).GetLeft() &&
diff --git a/svx/source/items/hlnkitem.cxx b/svx/source/items/hlnkitem.cxx
index 65e6bb467af0..5af2eb821526 100644
--- a/svx/source/items/hlnkitem.cxx
+++ b/svx/source/items/hlnkitem.cxx
@@ -229,7 +229,7 @@ SfxPoolItem* SvxHyperlinkItem::Clone( SfxItemPool* ) const
return new SvxHyperlinkItem( *this );
}
-int SvxHyperlinkItem::operator==( const SfxPoolItem& rAttr ) const
+bool SvxHyperlinkItem::operator==( const SfxPoolItem& rAttr ) const
{
DBG_ASSERT( SfxPoolItem::operator==(rAttr), "unterschiedliche Typen" );
diff --git a/svx/source/items/numinf.cxx b/svx/source/items/numinf.cxx
index 3ad62a7350a3..ef2969f1f47a 100644
--- a/svx/source/items/numinf.cxx
+++ b/svx/source/items/numinf.cxx
@@ -131,7 +131,7 @@ SfxItemPresentation SvxNumberInfoItem::GetPresentation
// -----------------------------------------------------------------------
-int SvxNumberInfoItem::operator==( const SfxPoolItem& rItem ) const
+bool SvxNumberInfoItem::operator==( const SfxPoolItem& rItem ) const
{
DBG_ASSERT( SfxPoolItem::operator==( rItem ), "unequal which or type" );
diff --git a/svx/source/items/ofaitem.cxx b/svx/source/items/ofaitem.cxx
index f64a97104beb..6b33715e77b1 100644
--- a/svx/source/items/ofaitem.cxx
+++ b/svx/source/items/ofaitem.cxx
@@ -30,7 +30,7 @@ OfaPtrItem::OfaPtrItem( const OfaPtrItem& rItem)
{
}
-int OfaPtrItem::operator==( const SfxPoolItem& rItem) const
+bool OfaPtrItem::operator==( const SfxPoolItem& rItem) const
{
return ((OfaPtrItem&)rItem).pPtr == pPtr;
}
diff --git a/svx/source/items/pageitem.cxx b/svx/source/items/pageitem.cxx
index a431a9fea121..cdebc8ae20b4 100644
--- a/svx/source/items/pageitem.cxx
+++ b/svx/source/items/pageitem.cxx
@@ -73,7 +73,7 @@ SfxPoolItem* SvxPageItem::Clone( SfxItemPool * ) const
Beschreibung: Abfrage auf Gleichheit
--------------------------------------------------------------------*/
-int SvxPageItem::operator==( const SfxPoolItem& rAttr ) const
+bool SvxPageItem::operator==( const SfxPoolItem& rAttr ) const
{
DBG_ASSERT( SfxPoolItem::operator==(rAttr), "unequal types" );
const SvxPageItem& rItem = (SvxPageItem&)rAttr;
diff --git a/svx/source/items/viewlayoutitem.cxx b/svx/source/items/viewlayoutitem.cxx
index c45635eb137c..5d6ec82ecfda 100644
--- a/svx/source/items/viewlayoutitem.cxx
+++ b/svx/source/items/viewlayoutitem.cxx
@@ -81,7 +81,7 @@ SvStream& SvxViewLayoutItem::Store( SvStream& rStrm, sal_uInt16 /*nItemVersion*/
// -----------------------------------------------------------------------
-int SvxViewLayoutItem::operator==( const SfxPoolItem& rAttr ) const
+bool SvxViewLayoutItem::operator==( const SfxPoolItem& rAttr ) const
{
DBG_ASSERT( SfxPoolItem::operator==(rAttr), "unequal types" );
diff --git a/svx/source/items/zoomslideritem.cxx b/svx/source/items/zoomslideritem.cxx
index eb04b54c04e0..23b47f6fd5df 100644
--- a/svx/source/items/zoomslideritem.cxx
+++ b/svx/source/items/zoomslideritem.cxx
@@ -78,7 +78,7 @@ SvStream& SvxZoomSliderItem::Store( SvStream& rStrm, sal_uInt16 /*nItemVersion*/
// -----------------------------------------------------------------------
-int SvxZoomSliderItem::operator==( const SfxPoolItem& rAttr ) const
+bool SvxZoomSliderItem::operator==( const SfxPoolItem& rAttr ) const
{
DBG_ASSERT( SfxPoolItem::operator==(rAttr), "unequal types" );
diff --git a/svx/source/svdraw/svdattr.cxx b/svx/source/svdraw/svdattr.cxx
index 8f701a3b15e0..45984d1f8110 100644
--- a/svx/source/svdraw/svdattr.cxx
+++ b/svx/source/svdraw/svdattr.cxx
@@ -654,7 +654,7 @@ SdrFractionItem::SdrFractionItem(sal_uInt16 nId, SvStream& rIn):
nValue=Fraction(nMul,nDiv);
}
-int SdrFractionItem::operator==(const SfxPoolItem& rCmp) const
+bool SdrFractionItem::operator==(const SfxPoolItem& rCmp) const
{
return SfxPoolItem::operator==(rCmp) &&
((SdrFractionItem&)rCmp).GetValue()==nValue;
@@ -1077,7 +1077,7 @@ SfxItemPresentation SdrTextFitToSizeTypeItem::GetPresentation(SfxItemPresentatio
return ePres;
}
-int SdrTextFitToSizeTypeItem::HasBoolValue() const { return sal_True; }
+bool SdrTextFitToSizeTypeItem::HasBoolValue() const { return sal_True; }
sal_Bool SdrTextFitToSizeTypeItem::GetBoolValue() const { return GetValue()!=SDRTEXTFIT_NONE; }
@@ -1473,7 +1473,7 @@ SdrCustomShapeAdjustmentItem::~SdrCustomShapeAdjustmentItem()
{
}
-int SdrCustomShapeAdjustmentItem::operator==( const SfxPoolItem& rCmp ) const
+bool SdrCustomShapeAdjustmentItem::operator==( const SfxPoolItem& rCmp ) const
{
int bRet = SfxPoolItem::operator==( rCmp );
if ( bRet )
diff --git a/svx/source/tbxctrls/grafctrl.cxx b/svx/source/tbxctrls/grafctrl.cxx
index 600774b3cee7..200c8a3d5c91 100644
--- a/svx/source/tbxctrls/grafctrl.cxx
+++ b/svx/source/tbxctrls/grafctrl.cxx
@@ -77,7 +77,7 @@ SfxPoolItem* TbxImageItem::Clone( SfxItemPool* ) const
return new TbxImageItem( *this );
}
-int TbxImageItem::operator==( const SfxPoolItem& rItem ) const
+bool TbxImageItem::operator==( const SfxPoolItem& rItem ) const
{
return( ( (TbxImageItem&) rItem ).GetValue() == GetValue() );
}
diff --git a/svx/source/xoutdev/xattr.cxx b/svx/source/xoutdev/xattr.cxx
index 9cc0f5dc5415..4bbb8008c9ce 100644
--- a/svx/source/xoutdev/xattr.cxx
+++ b/svx/source/xoutdev/xattr.cxx
@@ -104,7 +104,7 @@ NameOrIndex::NameOrIndex(const NameOrIndex& rNameOrIndex) :
{
}
-int NameOrIndex::operator==(const SfxPoolItem& rItem) const
+bool NameOrIndex::operator==(const SfxPoolItem& rItem) const
{
return ( SfxStringItem::operator==(rItem) &&
((const NameOrIndex&) rItem).nPalIndex == nPalIndex );
@@ -303,7 +303,7 @@ SfxPoolItem* XColorItem::Clone(SfxItemPool* /*pPool*/) const
return new XColorItem(*this);
}
-int XColorItem::operator==(const SfxPoolItem& rItem) const
+bool XColorItem::operator==(const SfxPoolItem& rItem) const
{
return ( NameOrIndex::operator==(rItem) &&
((const XColorItem&) rItem).aColor == aColor );
@@ -703,7 +703,7 @@ SfxPoolItem* XLineDashItem::Clone(SfxItemPool* /*pPool*/) const
return new XLineDashItem(*this);
}
-int XLineDashItem::operator==(const SfxPoolItem& rItem) const
+bool XLineDashItem::operator==(const SfxPoolItem& rItem) const
{
return ( NameOrIndex::operator==(rItem) &&
aDash == ((const XLineDashItem&) rItem).aDash );
@@ -1313,7 +1313,7 @@ SfxPoolItem* XLineStartItem::Clone(SfxItemPool* /*pPool*/) const
return new XLineStartItem(*this);
}
-int XLineStartItem::operator==(const SfxPoolItem& rItem) const
+bool XLineStartItem::operator==(const SfxPoolItem& rItem) const
{
return ( NameOrIndex::operator==(rItem) && ((const XLineStartItem&) rItem).maPolyPolygon == maPolyPolygon );
}
@@ -1671,7 +1671,7 @@ SfxPoolItem* XLineEndItem::Clone(SfxItemPool* /*pPool*/) const
return new XLineEndItem(*this);
}
-int XLineEndItem::operator==(const SfxPoolItem& rItem) const
+bool XLineEndItem::operator==(const SfxPoolItem& rItem) const
{
return ( NameOrIndex::operator==(rItem) && ((const XLineEndItem&) rItem).maPolyPolygon == maPolyPolygon );
}
@@ -2609,7 +2609,7 @@ SfxPoolItem* XFillGradientItem::Clone(SfxItemPool* /*pPool*/) const
return new XFillGradientItem(*this);
}
-int XFillGradientItem::operator==(const SfxPoolItem& rItem) const
+bool XFillGradientItem::operator==(const SfxPoolItem& rItem) const
{
return ( NameOrIndex::operator==(rItem) &&
aGradient == ((const XFillGradientItem&) rItem).aGradient );
@@ -2961,7 +2961,7 @@ XFillFloatTransparenceItem::XFillFloatTransparenceItem(SfxItemPool* /*pPool*/, c
SetWhich( XATTR_FILLFLOATTRANSPARENCE );
}
-int XFillFloatTransparenceItem::operator==( const SfxPoolItem& rItem ) const
+bool XFillFloatTransparenceItem::operator==( const SfxPoolItem& rItem ) const
{
return ( NameOrIndex::operator==(rItem) ) &&
( GetGradientValue() == ((const XFillGradientItem&)rItem).GetGradientValue() ) &&
@@ -3110,7 +3110,7 @@ SfxPoolItem* XFillHatchItem::Clone(SfxItemPool* /*pPool*/) const
return new XFillHatchItem(*this);
}
-int XFillHatchItem::operator==(const SfxPoolItem& rItem) const
+bool XFillHatchItem::operator==(const SfxPoolItem& rItem) const
{
return ( NameOrIndex::operator==(rItem) &&
aHatch == ((const XFillHatchItem&) rItem).aHatch );
diff --git a/svx/source/xoutdev/xattr2.cxx b/svx/source/xoutdev/xattr2.cxx
index 7c20c0001aeb..8a644acbe168 100644
--- a/svx/source/xoutdev/xattr2.cxx
+++ b/svx/source/xoutdev/xattr2.cxx
@@ -236,7 +236,7 @@ AffineMatrixItem::~AffineMatrixItem()
{
}
-int AffineMatrixItem::operator==(const SfxPoolItem& rRef) const
+bool AffineMatrixItem::operator==(const SfxPoolItem& rRef) const
{
if(!SfxPoolItem::operator==(rRef))
{
diff --git a/svx/source/xoutdev/xattrbmp.cxx b/svx/source/xoutdev/xattrbmp.cxx
index f8c53d795217..04e8c8c7f490 100644
--- a/svx/source/xoutdev/xattrbmp.cxx
+++ b/svx/source/xoutdev/xattrbmp.cxx
@@ -347,7 +347,7 @@ SfxPoolItem* XFillBitmapItem::Clone(SfxItemPool* /*pPool*/) const
return new XFillBitmapItem(*this);
}
-int XFillBitmapItem::operator==(const SfxPoolItem& rItem) const
+bool XFillBitmapItem::operator==(const SfxPoolItem& rItem) const
{
return (NameOrIndex::operator==(rItem)
&& maGraphicObject == ((const XFillBitmapItem&)rItem).maGraphicObject);