[Scummvm-git-logs] scummvm master -> 476a08a87e7805d4b65df82ff9787a2e8ed3d725
sev-
sev at scummvm.org
Mon Jul 13 12:42:40 UTC 2020
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:
476a08a87e DIRECTOR: LINGO: Slight code optimization
Commit: 476a08a87e7805d4b65df82ff9787a2e8ed3d725
https://github.com/scummvm/scummvm/commit/476a08a87e7805d4b65df82ff9787a2e8ed3d725
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2020-07-13T14:42:20+02:00
Commit Message:
DIRECTOR: LINGO: Slight code optimization
Changed paths:
engines/director/lingo/lingo.cpp
diff --git a/engines/director/lingo/lingo.cpp b/engines/director/lingo/lingo.cpp
index 77da43b31d..4b86e97604 100644
--- a/engines/director/lingo/lingo.cpp
+++ b/engines/director/lingo/lingo.cpp
@@ -81,24 +81,26 @@ Symbol::Symbol(const Symbol &s) {
}
Symbol& Symbol::operator=(const Symbol &s) {
- if (this != &s) {
- reset();
- name = s.name;
- type = s.type;
- u = s.u;
- refCount = s.refCount;
- *refCount += 1;
- nargs = s.nargs;
- maxArgs = s.maxArgs;
- parens = s.parens;
- targetType = s.targetType;
- argNames = s.argNames;
- varNames = s.varNames;
- ctx = s.ctx;
- archive = s.archive;
- target = s.target;
- anonymous = s.anonymous;
- }
+ if (this == &s)
+ return *this;
+
+ reset();
+ name = s.name;
+ type = s.type;
+ u = s.u;
+ refCount = s.refCount;
+ *refCount += 1;
+ nargs = s.nargs;
+ maxArgs = s.maxArgs;
+ parens = s.parens;
+ targetType = s.targetType;
+ argNames = s.argNames;
+ varNames = s.varNames;
+ ctx = s.ctx;
+ archive = s.archive;
+ target = s.target;
+ anonymous = s.anonymous;
+
return *this;
}
More information about the Scummvm-git-logs
mailing list