drawinglayer/source/primitive2d/epsprimitive2d.cxx | 2 +- include/vcl/gfxlink.hxx | 2 +- vcl/source/gdi/gfxlink.cxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
New commits: commit ce301dadcbbf8d0f0a71c7eaebca9bfad2e08801 Author: Noel Grandin <noel.gran...@collabora.co.uk> Date: Thu Sep 28 11:28:15 2017 +0200 convert GfxLink::IsEqual to operator== exactly one use site Change-Id: Id0a75d46c459be213e81b47aa6c1194c87aec848 Reviewed-on: https://gerrit.libreoffice.org/42891 Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> Tested-by: Noel Grandin <noel.gran...@collabora.co.uk> 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 135ba2dbb69f..a7a33ad1c862 100644 --- a/vcl/source/gdi/gfxlink.cxx +++ b/vcl/source/gdi/gfxlink.cxx @@ -41,7 +41,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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits