mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-27 12:22:39 +01:00
Dep: Silenced build warning in G3D header
(cherry picked from commit22653c99f8) (cherry picked from commitcce7f1adf2) (cherry picked from commitd2795c98dd)
This commit is contained in:
28
dep/g3dlite/G3D-v9.0 hotfix5.diff
Normal file
28
dep/g3dlite/G3D-v9.0 hotfix5.diff
Normal file
@@ -0,0 +1,28 @@
|
||||
diff --git a/dep/g3dlite/include/G3D/Quat.h b/dep/g3dlite/include/G3D/Quat.h
|
||||
index 04e11e0..b26708a 100644
|
||||
--- a/dep/g3dlite/include/G3D/Quat.h
|
||||
+++ b/dep/g3dlite/include/G3D/Quat.h
|
||||
@@ -335,8 +335,8 @@ public:
|
||||
Note that q.pow(a).pow(b) == q.pow(a + b)
|
||||
@cite Dam98 pg 21
|
||||
*/
|
||||
- inline Quat pow(float x) const {
|
||||
- return (log() * x).exp();
|
||||
+ inline Quat pow(float r) const {
|
||||
+ return (log() * r).exp();
|
||||
}
|
||||
|
||||
/** Make unit length in place */
|
||||
@@ -349,9 +349,9 @@ public:
|
||||
the magnitude.
|
||||
*/
|
||||
Quat toUnit() const {
|
||||
- Quat x = *this;
|
||||
- x.unitize();
|
||||
- return x;
|
||||
+ Quat copyOfThis = *this;
|
||||
+ copyOfThis.unitize();
|
||||
+ return copyOfThis;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -14,3 +14,4 @@ G3D-v9.0 hotfix1.diff - 2014-08-22 - updated to G3D9, reapplied previous patches
|
||||
G3D-v9.0 hotfix2.diff - 2014-08-23 - fix some -Wconversion warnings
|
||||
G3D-v9.0 hotfix3.diff - 2015-06-28 - fix some warnings
|
||||
G3D-v9.0 hotfix4.diff - 2015-07-02 - backport G3D10 fix
|
||||
G3D-v9.0 hotfix5.diff - 2015-07-31 - fix MSVC 2015 warning: dep/g3dlite/include/G3D/Quat.h(352): warning C4458: declaration of 'x' hides class member
|
||||
|
||||
@@ -335,8 +335,8 @@ public:
|
||||
Note that q.pow(a).pow(b) == q.pow(a + b)
|
||||
@cite Dam98 pg 21
|
||||
*/
|
||||
inline Quat pow(float x) const {
|
||||
return (log() * x).exp();
|
||||
inline Quat pow(float r) const {
|
||||
return (log() * r).exp();
|
||||
}
|
||||
|
||||
/** Make unit length in place */
|
||||
@@ -349,9 +349,9 @@ public:
|
||||
the magnitude.
|
||||
*/
|
||||
Quat toUnit() const {
|
||||
Quat x = *this;
|
||||
x.unitize();
|
||||
return x;
|
||||
Quat copyOfThis = *this;
|
||||
copyOfThis.unitize();
|
||||
return copyOfThis;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user