diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-01-29 13:18:09 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-01-29 13:18:09 +0100 |
commit | fa48a51183567934984b381ad8ec281cb24d66ba (patch) | |
tree | f4737d9d29666e6e531a0fd163c49420383484f5 /modules/gdscript/gdscript_parser.cpp | |
parent | e59e58a68afd60d0fa63e61751bd6d30575f3bb3 (diff) | |
parent | 15369fdb1d692e1515dd888dfbae275074be63be (diff) | |
download | redot-engine-fa48a51183567934984b381ad8ec281cb24d66ba.tar.gz |
Merge pull request #87688 from AThousandShips/what_is_this
Remove unnecessary `this->` expressions
Diffstat (limited to 'modules/gdscript/gdscript_parser.cpp')
-rw-r--r-- | modules/gdscript/gdscript_parser.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index 03cf334bed..2f1b3c1bfd 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -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; } |