Browse Source

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.

(cherry picked from commit 370f84f41cf3ce493c2de687455880d9e1e04be6)
anakimluke 7 years ago
parent
commit
bd3b958a25
1 changed files with 0 additions and 2 deletions
  1. 0 2
      modules/gdscript/gdscript_editor.cpp

+ 0 - 2
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 + "(";
 	String s = "func " + p_name + "(";
 	if (p_args.size()) {
 	if (p_args.size()) {
-		s += " ";
 		for (int i = 0; i < p_args.size(); i++) {
 		for (int i = 0; i < p_args.size(); i++) {
 			if (i > 0)
 			if (i > 0)
 				s += ", ";
 				s += ", ";
 			s += p_args[i].get_slice(":", 0);
 			s += p_args[i].get_slice(":", 0);
 		}
 		}
-		s += " ";
 	}
 	}
 	s += "):\n" + _get_indentation() + "pass # replace with function body\n";
 	s += "):\n" + _get_indentation() + "pass # replace with function body\n";