summaryrefslogtreecommitdiffstats
path: root/modules/mono/csharp_script.cpp
diff options
context:
space:
mode:
authorVolTer <mew.pur.pur@abv.bg>2023-01-29 00:52:05 +0100
committerVolTer <mew.pur.pur@abv.bg>2023-05-01 02:27:46 +0200
commit6b84e258d20e007fd7c95ac2d4f9244bd93edc13 (patch)
treea99fd73bfdd933775b157122956fe4fbbe656389 /modules/mono/csharp_script.cpp
parent10d22a4b35b33ad89f626c261ef7f1aeae81daf3 (diff)
downloadredot-engine-6b84e258d20e007fd7c95ac2d4f9244bd93edc13.tar.gz
Use String.repeat() in more places
Diffstat (limited to 'modules/mono/csharp_script.cpp')
-rw-r--r--modules/mono/csharp_script.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/modules/mono/csharp_script.cpp b/modules/mono/csharp_script.cpp
index ca94917938..5bb9e3c07b 100644
--- a/modules/mono/csharp_script.cpp
+++ b/modules/mono/csharp_script.cpp
@@ -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