From 6730c11dd9f084512bab03e8668de3be0bce42e5 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 19 May 2022 10:04:18 +1000 Subject: Cleanup: quiet deprecated-copy warning with GCC --- source/blender/imbuf/intern/dds/Color.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source/blender/imbuf') diff --git a/source/blender/imbuf/intern/dds/Color.h b/source/blender/imbuf/intern/dds/Color.h index 3918ef31052..5b00333ad77 100644 --- a/source/blender/imbuf/intern/dds/Color.h +++ b/source/blender/imbuf/intern/dds/Color.h @@ -21,9 +21,8 @@ class Color32 { Color32() { } - Color32(const Color32 &c) : u(c.u) - { - } + Color32(const Color32 &) = default; + Color32(unsigned char R, unsigned char G, unsigned char B) { setRGBA(R, G, B, 0xFF); -- cgit v1.2.3