You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
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.
This commit is contained in:
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user