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

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
üst 37605424
...@@ -221,8 +221,8 @@ bool Image::operator==(const Image& rImage) const ...@@ -221,8 +221,8 @@ bool Image::operator==(const Image& rImage) const
bRet = true; bRet = true;
else if (!rImage.mpImplData || !mpImplData) else if (!rImage.mpImplData || !mpImplData)
bRet = false; bRet = false;
else if (rImage.mpImplData->mpBitmapEx == mpImplData->mpBitmapEx) else
bRet = (rImage.mpImplData->mpBitmapEx == mpImplData->mpBitmapEx); bRet = *rImage.mpImplData->mpBitmapEx == *mpImplData->mpBitmapEx;
return bRet; return bRet;
} }
......
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