Remove unnecessary this-> expressions

This commit is contained in:
A Thousand Ships 2024-01-28 21:51:39 +01:00
parent 17e7f85c06
commit 15369fdb1d
No known key found for this signature in database
GPG key ID: 2033189A662F8BD7
39 changed files with 160 additions and 160 deletions

View file

@ -3865,7 +3865,7 @@ bool GDScriptParser::uid_annotation(const AnnotationNode *p_annotation, Node *p_
ERR_FAIL_COND_V(p_annotation->resolved_arguments.is_empty(), false);
#ifdef DEBUG_ENABLED
if (this->_has_uid) {
if (_has_uid) {
push_error(R"("@uid" annotation can only be used once.)", p_annotation);
return false;
}
@ -3885,18 +3885,18 @@ bool GDScriptParser::uid_annotation(const AnnotationNode *p_annotation, Node *p_
class_node->uid_string = uid_string;
this->_has_uid = true;
_has_uid = true;
return true;
}
bool GDScriptParser::tool_annotation(const AnnotationNode *p_annotation, Node *p_target, ClassNode *p_class) {
#ifdef DEBUG_ENABLED
if (this->_is_tool) {
if (_is_tool) {
push_error(R"("@tool" annotation can only be used once.)", p_annotation);
return false;
}
#endif // DEBUG_ENABLED
this->_is_tool = true;
_is_tool = true;
return true;
}