Kaydet (Commit) ce301dad authored tarafından Noel Grandin's avatar Noel Grandin

convert GfxLink::IsEqual to operator==

exactly one use site

Change-Id: Id0a75d46c459be213e81b47aa6c1194c87aec848
Reviewed-on: https://gerrit.libreoffice.org/42891Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
Tested-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 1ffba0e3
......@@ -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());
}
......
......@@ -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;}
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment