From b95c4868b10f69e642666742233aede1eb653012 Mon Sep 17 00:00:00 2001 From: Peter Kasting Date: Fri, 18 Jun 2021 10:09:06 -0700 Subject: [PATCH] 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 --- src/client/mac/handler/dynamic_images.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/mac/handler/dynamic_images.h b/src/client/mac/handler/dynamic_images.h index e81ea7f3..01f3a0e9 100644 --- a/src/client/mac/handler/dynamic_images.h +++ b/src/client/mac/handler/dynamic_images.h @@ -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(this)->p)