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

grisenti noreply at scummvm.org
Mon Nov 20 21:11:57 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:
c4d26ff3e8 HPL1: Make dgVector's constructor constexpr


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

Commit Message:
HPL1: Make dgVector's constructor constexpr

This fixes global constructor warnings.

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 204cd9d576a..362834b209f 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() : m_x(0), m_y(0), m_z(0), m_w(0) {}
+	constexpr dgTemplateVector() : m_x(0), m_y(0), m_z(0), m_w(0) {}
 	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() = default;
+	constexpr dgVector() = default;
 #ifdef DG_BUILD_SIMD_CODE
 	dgVector(const simd_type &val);
 #endif




More information about the Scummvm-git-logs mailing list