From 370f84f41cf3ce493c2de687455880d9e1e04be6 Mon Sep 17 00:00:00 2001 From: anakimluke Date: Thu, 22 Feb 2018 19:07:10 -0300 Subject: [PATCH] Removed whitespaces around arguments of functions. Functions automatically generated by conneting signals via GUI put whitespaces around the arguments of the generated function. This is inconsistent with the style guide. This commit fixes that. --- modules/gdscript/gdscript_editor.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp index 505562324f3..db3787470f5 100644 --- a/modules/gdscript/gdscript_editor.cpp +++ b/modules/gdscript/gdscript_editor.cpp @@ -410,13 +410,11 @@ String GDScriptLanguage::make_function(const String &p_class, const String &p_na String s = "func " + p_name + "("; if (p_args.size()) { - s += " "; for (int i = 0; i < p_args.size(); i++) { if (i > 0) s += ", "; s += p_args[i].get_slice(":", 0); } - s += " "; } s += "):\n" + _get_indentation() + "pass # replace with function body\n";