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
This commit is contained in:
sfan5
2022-04-28 21:16:10 +02:00
parent 8b1d0db8e2
commit c9b66c8c58
2 changed files with 3 additions and 10 deletions

View File

@ -102,6 +102,9 @@ namespace core
//! Simple operator for linearly accessing every element of the matrix.
const T& operator[](u32 index) const { return M[index]; }
//! Sets this matrix equal to the other matrix.
CMatrix4<T>& operator=(const CMatrix4<T> &other) = default;
//! Sets all elements of this matrix to the value.
inline CMatrix4<T>& operator=(const T& scalar);