summaryrefslogtreecommitdiff
path: root/include/vcl/bitmap.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-27 14:22:45 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-28 08:53:56 +0200
commit09917566b6ce86ea65a246f2055b5d1f41df4e76 (patch)
treefb97e4aed127664ca290305a056f75f43ab22401 /include/vcl/bitmap.hxx
parent851c9f8f4be79be43837b6295decf90c8b27cc71 (diff)
simplify Bitmap operator==/IsEqual (stage2)
Now that we've sorted out which bits are rightfully internal (see commit 7a4064cf87d23bffac987b3e39bf87d9b4d158fc), and which bits need a comparison operator, rename IsEqual to operator==. Change-Id: Iec229a7571d76ee18fbc0a4fe672cc2e50a44948 Reviewed-on: https://gerrit.libreoffice.org/42851 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl/bitmap.hxx')
-rw-r--r--include/vcl/bitmap.hxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/vcl/bitmap.hxx b/include/vcl/bitmap.hxx
index 321c4969e3e7..0be13c12bf3e 100644
--- a/include/vcl/bitmap.hxx
+++ b/include/vcl/bitmap.hxx
@@ -224,10 +224,8 @@ public:
Bitmap& operator=( const Bitmap& rBitmap );
Bitmap& operator=( Bitmap&& rBitmap );
inline bool operator!() const;
- bool operator==( const Bitmap& rBitmap ) const = delete;
- bool operator!=( const Bitmap& rBitmap ) const = delete;
-
- bool IsEqual( const Bitmap& rBmp ) const;
+ bool operator==( const Bitmap& rBitmap ) const;
+ bool operator!=( const Bitmap& rBitmap ) const { return !operator==(rBitmap); }
inline bool IsEmpty() const;
void SetEmpty();