mirror of
https://github.com/godotengine/godot.git
synced 2025-11-02 06:31:13 +00:00
Remove unnecessary this-> expressions
This commit is contained in:
parent
17e7f85c06
commit
15369fdb1d
39 changed files with 160 additions and 160 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue