summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-28 11:28:15 +0200
committerAshod Nakashian <ashod.nakashian@collabora.co.uk>2018-06-18 13:34:29 -0400
commitd4333b1108a5ea734e31732175785edced83a951 (patch)
tree02392afac262ad9d896cbf329781ab8408afb355
parent439489eb64c9478f8613a069ecfdc85770584ee8 (diff)
convert GfxLink::IsEqual to operator==
exactly one use site Change-Id: Id0a75d46c459be213e81b47aa6c1194c87aec848 Reviewed-on: https://gerrit.libreoffice.org/42891 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk> (cherry picked from commit ce301dadcbbf8d0f0a71c7eaebca9bfad2e08801)
-rw-r--r--drawinglayer/source/primitive2d/epsprimitive2d.cxx2
-rw-r--r--include/vcl/gfxlink.hxx2
-rw-r--r--vcl/source/gdi/gfxlink.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/drawinglayer/source/primitive2d/epsprimitive2d.cxx b/drawinglayer/source/primitive2d/epsprimitive2d.cxx
index 197a0b1d9032..533cdb30ce52 100644
--- a/drawinglayer/source/primitive2d/epsprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/epsprimitive2d.cxx
@@ -60,7 +60,7 @@ namespace drawinglayer
const EpsPrimitive2D& rCompare = static_cast<const EpsPrimitive2D&>(rPrimitive);
return (getEpsTransform() == rCompare.getEpsTransform()
- && getGfxLink().IsEqual(rCompare.getGfxLink())
+ && getGfxLink() == rCompare.getGfxLink()
&& getMetaFile() == rCompare.getMetaFile());
}
diff --git a/include/vcl/gfxlink.hxx b/include/vcl/gfxlink.hxx
index 3632b66d23f3..d8eef9e3ce3a 100644
--- a/include/vcl/gfxlink.hxx
+++ b/include/vcl/gfxlink.hxx
@@ -83,7 +83,7 @@ public:
// pBuff = The Graphic data. This class takes ownership of this
GfxLink( std::unique_ptr<sal_uInt8[]> pBuf, sal_uInt32 nBufSize, GfxLinkType nType );
- bool IsEqual( const GfxLink& ) const;
+ bool operator==( const GfxLink& ) const;
GfxLinkType GetType() const { return meType;}
diff --git a/vcl/source/gdi/gfxlink.cxx b/vcl/source/gdi/gfxlink.cxx
index 4fdd0e1398e9..8f7c3708f28a 100644
--- a/vcl/source/gdi/gfxlink.cxx
+++ b/vcl/source/gdi/gfxlink.cxx
@@ -45,7 +45,7 @@ GfxLink::GfxLink( std::unique_ptr<sal_uInt8[]> pBuf, sal_uInt32 nSize, GfxLinkTy
mpSwapInData = std::shared_ptr<sal_uInt8>(pBuf.release(), pBuf.get_deleter()); // std::move(pBuf) does not compile on Jenkins MacOSX (24 May 2016)
}
-bool GfxLink::IsEqual( const GfxLink& rGfxLink ) const
+bool GfxLink::operator==( const GfxLink& rGfxLink ) const
{
bool bIsEqual = false;