New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DIRECTOR: LINGO: Implement kTheModified field in CastMember::getField() #3992
Conversation
@@ -661,7 +661,7 @@ Datum CastMember::getField(int field) { | |||
d = 1; // Not loaded handled in Lingo::getTheCast | |||
break; | |||
case kTheModified: | |||
warning("STUB: CastMember::getField():: Unprocessed getting field \"%s\" of cast %d", g_lingo->field2str(field), _castId); | |||
d = (int) _modified; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do not insert space between type cast and var, e.g. d = (int)_modified;
Please explain how it was tested. |
1 similar comment
Please explain how it was tested. |
This got conflicts. You need to rebase. |
@@ -73,7 +73,7 @@ class CastMember : public Object<CastMember> { | |||
virtual bool isEditable() { return false; } | |||
virtual void setEditable(bool editable) {} | |||
virtual bool isModified() { return _modified; } | |||
virtual void setModified(bool modified) { _modified = modified; } | |||
void setModified(bool modified); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you drop the virtual
modifier here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right. It wasn't necessary. But it wasn't getting inherited and overridden so I saw no harm in doing that
Thanks |
This is a quick fix to implement the STUB for the
Modified
property of CastMember