mirror of
https://github.com/godotengine/godot.git
synced 2025-10-31 21:51:22 +00:00
Fix MSVC warnings, rename shadowed variables, fix uninitialized values, change warnings=all to use /W4.
This commit is contained in:
parent
5b7f62af55
commit
0103af1ddd
240 changed files with 3390 additions and 3431 deletions
|
|
@ -3953,28 +3953,22 @@ GDScriptParser::DataType GDScriptParser::SuiteNode::Local::get_datatype() const
|
|||
}
|
||||
|
||||
String GDScriptParser::SuiteNode::Local::get_name() const {
|
||||
String name;
|
||||
switch (type) {
|
||||
case SuiteNode::Local::PARAMETER:
|
||||
name = "parameter";
|
||||
break;
|
||||
return "parameter";
|
||||
case SuiteNode::Local::CONSTANT:
|
||||
name = "constant";
|
||||
break;
|
||||
return "constant";
|
||||
case SuiteNode::Local::VARIABLE:
|
||||
name = "variable";
|
||||
break;
|
||||
return "variable";
|
||||
case SuiteNode::Local::FOR_VARIABLE:
|
||||
name = "for loop iterator";
|
||||
break;
|
||||
return "for loop iterator";
|
||||
case SuiteNode::Local::PATTERN_BIND:
|
||||
name = "pattern_bind";
|
||||
break;
|
||||
return "pattern_bind";
|
||||
case SuiteNode::Local::UNDEFINED:
|
||||
name = "<undefined>";
|
||||
break;
|
||||
return "<undefined>";
|
||||
default:
|
||||
return String();
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
String GDScriptParser::DataType::to_string() const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue