diff options
author | VolTer <mew.pur.pur@abv.bg> | 2023-01-29 00:52:05 +0100 |
---|---|---|
committer | VolTer <mew.pur.pur@abv.bg> | 2023-05-01 02:27:46 +0200 |
commit | 6b84e258d20e007fd7c95ac2d4f9244bd93edc13 (patch) | |
tree | a99fd73bfdd933775b157122956fe4fbbe656389 /modules/mono/csharp_script.cpp | |
parent | 10d22a4b35b33ad89f626c261ef7f1aeae81daf3 (diff) | |
download | redot-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.cpp | 7 |
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 |