diff options
author | Campbell Barton <campbell@blender.org> | 2022-05-19 03:04:18 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-05-19 04:17:01 +0300 |
commit | 6730c11dd9f084512bab03e8668de3be0bce42e5 (patch) | |
tree | c137a03ad094811b57f7fbbee66e2c00e3eeb1c5 /source | |
parent | 3e2017491ae62ed1b6436484b227ef7542f599aa (diff) |
Cleanup: quiet deprecated-copy warning with GCC
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/imbuf/intern/dds/Color.h | 5 |
1 files changed, 2 insertions, 3 deletions
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); |