From c9b66c8c5883978825e4aca0c7410a2c3e9c0351 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Thu, 28 Apr 2022 21:16:10 +0200 Subject: [PATCH] Sort out two -Wdeprecated-copy warnings - SMaterial copy constructor is removed entirely (same change in upstream trunk r6362) - CMatrix4 gets an explicit, but default copy constructor readded --- include/SMaterial.h | 10 ---------- include/matrix4.h | 3 +++ 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/include/SMaterial.h b/include/SMaterial.h index 55be84ab..43dadb6e 100644 --- a/include/SMaterial.h +++ b/include/SMaterial.h @@ -301,16 +301,6 @@ namespace video FogEnable(false), NormalizeNormals(false), UseMipMaps(true) { } - //! Copy constructor - /** \param other Material to copy from. */ - SMaterial(const SMaterial& other) - { - // These pointers are checked during assignment - for (u32 i=0; i& operator=(const CMatrix4 &other) = default; + //! Sets all elements of this matrix to the value. inline CMatrix4& operator=(const T& scalar);