You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Use String.repeat() in more places
This commit is contained in:
@@ -524,12 +524,7 @@ String CSharpLanguage::_get_indentation() const {
|
||||
|
||||
if (use_space_indentation) {
|
||||
int indent_size = EDITOR_GET("text_editor/behavior/indent/size");
|
||||
|
||||
String space_indent = "";
|
||||
for (int i = 0; i < indent_size; i++) {
|
||||
space_indent += " ";
|
||||
}
|
||||
return space_indent;
|
||||
return String(" ").repeat(indent_size);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user