summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-23 15:19:40 +0200
committerNoel Grandin <noel@peralex.com>2015-11-23 15:19:40 +0200
commit28f21af7194c887f74190e6c6596fbaafc189e97 (patch)
tree35b7d51199e257583289003e1c02d519bb2011d7 /vcl
parent37605424f51c569d1b80c47a4d42366bf829e683 (diff)
fix Image::operator==
comparing the pointer values in std::unique_ptr's can never be true (since they cannot point at the same thing, by definition) Change-Id: I38eb6406b61d5a3662adb68ca1558248925d7e90
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/image/Image.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/image/Image.cxx b/vcl/source/image/Image.cxx
index 33a5018891ba..d224da1d0a7b 100644
--- a/vcl/source/image/Image.cxx
+++ b/vcl/source/image/Image.cxx
@@ -221,8 +221,8 @@ bool Image::operator==(const Image& rImage) const
bRet = true;
else if (!rImage.mpImplData || !mpImplData)
bRet = false;
- else if (rImage.mpImplData->mpBitmapEx == mpImplData->mpBitmapEx)
- bRet = (rImage.mpImplData->mpBitmapEx == mpImplData->mpBitmapEx);
+ else
+ bRet = *rImage.mpImplData->mpBitmapEx == *mpImplData->mpBitmapEx;
return bRet;
}