[Scummvm-git-logs] scummvm master -> 5cb71c351e4f1df47243a05dfb0ec0b448b94ce7
digitall
547637+digitall at users.noreply.github.com
Sun Mar 14 16:45:47 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:
5cb71c351e DM: Fix GCC Warning for Implicit Copy Operator
Commit: 5cb71c351e4f1df47243a05dfb0ec0b448b94ce7
https://github.com/scummvm/scummvm/commit/5cb71c351e4f1df47243a05dfb0ec0b448b94ce7
Author: D G Turner (digitall at scummvm.org)
Date: 2021-03-14T16:44:56Z
Commit Message:
DM: 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/dm/dm.h
diff --git a/engines/dm/dm.h b/engines/dm/dm.h
index aa46979ad1..9fa57518eb 100644
--- a/engines/dm/dm.h
+++ b/engines/dm/dm.h
@@ -139,6 +139,7 @@ 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