Fix a -Wdeprecated-copy warning.

Bug: chromium:1221591
Change-Id: I52968a535f126b854f8e860b9632ffe00c55b6be
Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/2973213
Reviewed-by: Lei Zhang <thestig@chromium.org>
This commit is contained in:
Peter Kasting 2021-06-18 10:09:06 -07:00 committed by Lei Zhang
parent 7ba29f4a36
commit b95c4868b1

View file

@ -207,7 +207,8 @@ class DynamicImageRef {
public:
explicit DynamicImageRef(DynamicImage* inP) : p(inP) {}
// The copy constructor is required by STL
DynamicImageRef(const DynamicImageRef& inRef) : p(inRef.p) {}
DynamicImageRef(const DynamicImageRef& inRef) = default;
DynamicImageRef& operator=(const DynamicImageRef& inRef) = default;
bool operator<(const DynamicImageRef& inRef) const {
return (*const_cast<DynamicImageRef*>(this)->p)