Static analyzer fixes:

Removes unused code in OS.
Fixes return types.
Fixes few typos.
This commit is contained in:
bruvzg 2020-12-08 20:58:49 +02:00
parent 90bdba576a
commit 644f739660
No known key found for this signature in database
GPG key ID: 009E1BFE42239B95
27 changed files with 25 additions and 85 deletions

View file

@ -723,7 +723,7 @@ Dictionary ExtendGDScriptParser::dump_class_api(const GDScriptParser::ClassNode
} break;
case ClassNode::Member::ENUM: {
Dictionary enum_dict;
for (int j = 0; j < m.m_enum->values.size(); i++) {
for (int j = 0; j < m.m_enum->values.size(); j++) {
enum_dict[m.m_enum->values[i].identifier->name] = m.m_enum->values[i].value;
}