1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-21 14:57:09 +00:00

Merge pull request #31077 from qarmin/coverity_bugs

Change some code proposed by Coverity and Cppcheck
This commit is contained in:
Rémi Verschelde
2019-08-07 13:49:33 +02:00
committed by GitHub
26 changed files with 65 additions and 58 deletions

View File

@@ -326,7 +326,8 @@ void EditorPlugin::remove_autoload_singleton(const String &p_name) {
Ref<ConfigFile> EditorPlugin::get_config() {
Ref<ConfigFile> cf = memnew(ConfigFile);
cf->load(_dir_cache.plus_file("plugin.cfg"));
Error err = cf->load(_dir_cache.plus_file("plugin.cfg"));
ERR_FAIL_COND_V(err != OK, cf);
return cf;
}