Use String.repeat() in more places
This commit is contained in:
parent
10d22a4b35
commit
6b84e258d2
12 changed files with 37 additions and 94 deletions
|
|
@ -1353,10 +1353,7 @@ static void _write_string(Ref<FileAccess> f, int p_tablevel, const String &p_str
|
|||
if (p_string.is_empty()) {
|
||||
return;
|
||||
}
|
||||
String tab;
|
||||
for (int i = 0; i < p_tablevel; i++) {
|
||||
tab += "\t";
|
||||
}
|
||||
String tab = String("\t").repeat(p_tablevel);
|
||||
f->store_string(tab + p_string + "\n");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue