mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-18 00:08:20 +01:00
Remove assignment operator in quaternion.
It's identical to the implicit one generated, so we don't need that. And it triggers warnings with -Wdeprecated in newer gcc. It's because the implicit definition of a copy constructor is deprecated if the class has a user-declared copy assignment operator. There's a few more warnings about that in Irrlicht, will have to check them in detail as the other cases are not as trivial to fix as this one. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6279 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
parent
66f9511745
commit
1e7ceac26c
@ -55,9 +55,6 @@ class quaternion
|
|||||||
//! inequality operator
|
//! inequality operator
|
||||||
bool operator!=(const quaternion& other) const;
|
bool operator!=(const quaternion& other) const;
|
||||||
|
|
||||||
//! Assignment operator
|
|
||||||
inline quaternion& operator=(const quaternion& other);
|
|
||||||
|
|
||||||
#ifndef IRR_TEST_BROKEN_QUATERNION_USE
|
#ifndef IRR_TEST_BROKEN_QUATERNION_USE
|
||||||
//! Matrix assignment operator
|
//! Matrix assignment operator
|
||||||
inline quaternion& operator=(const matrix4& other);
|
inline quaternion& operator=(const matrix4& other);
|
||||||
@ -240,15 +237,6 @@ inline bool quaternion::operator!=(const quaternion& other) const
|
|||||||
return !(*this == other);
|
return !(*this == other);
|
||||||
}
|
}
|
||||||
|
|
||||||
// assignment operator
|
|
||||||
inline quaternion& quaternion::operator=(const quaternion& other)
|
|
||||||
{
|
|
||||||
X = other.X;
|
|
||||||
Y = other.Y;
|
|
||||||
Z = other.Z;
|
|
||||||
W = other.W;
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifndef IRR_TEST_BROKEN_QUATERNION_USE
|
#ifndef IRR_TEST_BROKEN_QUATERNION_USE
|
||||||
// matrix assignment operator
|
// matrix assignment operator
|
||||||
|
Loading…
Reference in New Issue
Block a user