mirror of
https://github.com/yuzu-emu/breakpad
synced 2024-11-26 01:17:46 +00:00
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:
parent
7ba29f4a36
commit
b95c4868b1
1 changed files with 2 additions and 1 deletions
|
@ -207,7 +207,8 @@ class DynamicImageRef {
|
||||||
public:
|
public:
|
||||||
explicit DynamicImageRef(DynamicImage* inP) : p(inP) {}
|
explicit DynamicImageRef(DynamicImage* inP) : p(inP) {}
|
||||||
// The copy constructor is required by STL
|
// 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 {
|
bool operator<(const DynamicImageRef& inRef) const {
|
||||||
return (*const_cast<DynamicImageRef*>(this)->p)
|
return (*const_cast<DynamicImageRef*>(this)->p)
|
||||||
|
|
Loading…
Reference in a new issue