diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-07-05 22:32:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-05 22:32:27 +0200 |
commit | 347a55d4c22f8e1ee1ea62112063c3b5394044ad (patch) | |
tree | 313053a64e20cc77c692f03d2ce2cd93577a6e6e /modules/mono/class_db_api_json.cpp | |
parent | 0287508dcdf51c7349b41aabb7679061a5147fdf (diff) | |
parent | 2511c439727226f64def8b15b38d084db187cf55 (diff) | |
download | redot-engine-347a55d4c22f8e1ee1ea62112063c3b5394044ad.tar.gz |
Merge pull request #40137 from neikeq/fix-clangtidy-warnings-mono
Mono/C#: Fix several clang-tidy warnings and cleanup
Diffstat (limited to 'modules/mono/class_db_api_json.cpp')
-rw-r--r-- | modules/mono/class_db_api_json.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/mono/class_db_api_json.cpp b/modules/mono/class_db_api_json.cpp index 39e3a95afa..d7b2028204 100644 --- a/modules/mono/class_db_api_json.cpp +++ b/modules/mono/class_db_api_json.cpp @@ -53,8 +53,9 @@ void class_db_api_to_json(const String &p_output_file, ClassDB::APIType p_api) { for (List<StringName>::Element *E = names.front(); E; E = E->next()) { ClassDB::ClassInfo *t = ClassDB::classes.getptr(E->get()); ERR_FAIL_COND(!t); - if (t->api != p_api || !t->exposed) + if (t->api != p_api || !t->exposed) { continue; + } Dictionary class_dict; classes_dict[t->name] = class_dict; @@ -72,8 +73,9 @@ void class_db_api_to_json(const String &p_output_file, ClassDB::APIType p_api) { ERR_CONTINUE(name.empty()); - if (name[0] == '_') + if (name[0] == '_') { continue; // Ignore non-virtual methods that start with an underscore + } snames.push_back(*k); } |