[Scummvm-git-logs] scummvm master -> b378d19fad43bf9cda6af9b3dfd9cc124ebbb193
digitall
547637+digitall at users.noreply.github.com
Sun Mar 14 14:24:34 UTC 2021
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:
b378d19fad CGE2: Fix GCC Warning for Implicit Copy Operator
Commit: b378d19fad43bf9cda6af9b3dfd9cc124ebbb193
https://github.com/scummvm/scummvm/commit/b378d19fad43bf9cda6af9b3dfd9cc124ebbb193
Author: D G Turner (digitall at scummvm.org)
Date: 2021-03-14T14:23:17Z
Commit Message:
CGE2: Fix GCC Warning for Implicit Copy Operator
This is emitted when -Wdeprecated-copy is enabled. The fix implemented
is to implement the copy operator as per the expected default.
This has the advantage of working with compilers prior to C++-11.
Changed paths:
engines/cge2/vga13h.h
diff --git a/engines/cge2/vga13h.h b/engines/cge2/vga13h.h
index 5d575849d4..087a6b1469 100644
--- a/engines/cge2/vga13h.h
+++ b/engines/cge2/vga13h.h
@@ -82,6 +82,7 @@ public:
V3D() { }
V3D(FXP x, FXP y, FXP z = 0) : _x(x), _y(y), _z(z) { }
V3D(const V3D &p) : _x(p._x), _y(p._y), _z(p._z) { }
+ V3D &operator=(const V3D &p) { _x = p._x; _y = p._y; _z = p._z; return *this; }
V3D operator+(const V3D &p) const { return V3D(_x + p._x, _y + p._y, _z + p._z); }
V3D operator-(const V3D &p) const { return V3D(_x - p._x, _y - p._y, _z - p._z); }
V3D operator*(long n) const { return V3D(_x * n, _y * n, _z * n); }
More information about the Scummvm-git-logs
mailing list