[Scummvm-git-logs] scummvm master -> d87da9bff91d95166f0bf787b8a66b898d8a0b85

grisenti noreply at scummvm.org
Mon Jan 30 21:44:42 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
d87da9bff9 HPL1: mark dgVector's empty constructor = default


Commit: d87da9bff91d95166f0bf787b8a66b898d8a0b85
    https://github.com/scummvm/scummvm/commit/d87da9bff91d95166f0bf787b8a66b898d8a0b85
Author: grisenti (emanuele at grisenti.net)
Date: 2023-01-30T22:44:26+01:00

Commit Message:
HPL1: mark dgVector's empty constructor = default

Changed paths:
    engines/hpl1/engine/libraries/newton/core/dgVector.h


diff --git a/engines/hpl1/engine/libraries/newton/core/dgVector.h b/engines/hpl1/engine/libraries/newton/core/dgVector.h
index 6720330bb5b..9dabed8bc08 100644
--- a/engines/hpl1/engine/libraries/newton/core/dgVector.h
+++ b/engines/hpl1/engine/libraries/newton/core/dgVector.h
@@ -33,7 +33,7 @@
 template<class T>
 class dgTemplateVector {
 public:
-	dgTemplateVector();
+	dgTemplateVector() = default;
 	dgTemplateVector(const T *ptr);
 	constexpr dgTemplateVector(T m_x, T m_y, T m_z, T m_w);
 	dgTemplateVector Scale(T s) const;
@@ -85,7 +85,7 @@ class dgBigVector;
 DG_MSC_VECTOR_ALIGMENT
 class dgVector: public dgTemplateVector<dgFloat32> {
 public:
-	dgVector();
+	dgVector() = default;
 #ifdef DG_BUILD_SIMD_CODE
 	dgVector(const simd_type &val);
 #endif
@@ -114,12 +114,6 @@ public:
 } DG_GCC_VECTOR_ALIGMENT;
 
 
-
-
-
-template<class T>
-dgTemplateVector<T>::dgTemplateVector() {}
-
 template<class T>
 dgTemplateVector<T>::dgTemplateVector(const T *ptr)
 	: m_x(ptr[0]), m_y(ptr[1]), m_z(ptr[2]), m_w(0.0f) {
@@ -268,10 +262,6 @@ dgTemplateVector<T> dgTemplateVector<T>::CompProduct4(const dgTemplateVector<T>
 
 
 
-DG_INLINE dgVector::dgVector()
-	: dgTemplateVector<dgFloat32>() {
-}
-
 DG_INLINE dgVector::dgVector(const dgTemplateVector<dgFloat32> &v)
 	: dgTemplateVector<dgFloat32>(v) {
 	NEWTON_ASSERT(dgCheckVector((*this)));




More information about the Scummvm-git-logs mailing list