[Bf-blender-cvs] [6730c11dd9f] master: Cleanup: quiet deprecated-copy warning with GCC

Campbell Barton noreply at git.blender.org
Thu May 19 03:18:41 CEST 2022


Commit: 6730c11dd9f084512bab03e8668de3be0bce42e5
Author: Campbell Barton
Date:   Thu May 19 10:04:18 2022 +1000
Branches: master
https://developer.blender.org/rB6730c11dd9f084512bab03e8668de3be0bce42e5

Cleanup: quiet deprecated-copy warning with GCC

===================================================================

M	source/blender/imbuf/intern/dds/Color.h

===================================================================

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);



More information about the Bf-blender-cvs mailing list