[Scummvm-git-logs] scummvm master -> 51935a8569845dd81282bbde3a35ad08f7e1498d

digitall 547637+digitall at users.noreply.github.com
Mon Mar 15 13:24:15 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:
51935a8569 DM: Remove trivial copy ctor and copy assignment operator


Commit: 51935a8569845dd81282bbde3a35ad08f7e1498d
    https://github.com/scummvm/scummvm/commit/51935a8569845dd81282bbde3a35ad08f7e1498d
Author: Orgad Shaneh (orgads at gmail.com)
Date: 2021-03-15T13:24:12Z

Commit Message:
DM: Remove trivial copy ctor and copy assignment operator

Changed paths:
    engines/dm/dm.h


diff --git a/engines/dm/dm.h b/engines/dm/dm.h
index 9fa57518eb..1b1d8b9380 100644
--- a/engines/dm/dm.h
+++ b/engines/dm/dm.h
@@ -120,7 +120,6 @@ public:
 	uint16 _data;
 
 	Thing() : _data(0) {}
-	Thing(const Thing &other) { set(other._data); }
 	explicit Thing(uint16 d) { set(d); }
 
 	void set(uint16 d) {
@@ -139,7 +138,6 @@ public:
 	uint16 toUint16() const { return _data; } // I don't like 'em cast operators
 	bool operator==(const Thing &rhs) const { return _data == rhs._data; }
 	bool operator!=(const Thing &rhs) const { return _data != rhs._data; }
-	Thing &operator=(const Thing &rhs) { _data = rhs._data; return *this; }
 }; // @ THING
 
 #define setFlag(val, mask) ((val) |= (mask))




More information about the Scummvm-git-logs mailing list