1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Rename String::resize to resize_uninitialized, to better communicate to callers that new characters must be initialized.

This commit is contained in:
Lukas Tenbrink
2025-05-28 20:33:21 +02:00
parent 51b0379e55
commit b13a0e1834
26 changed files with 103 additions and 98 deletions

View File

@@ -60,7 +60,7 @@ String StringBuilder::as_string() const {
}
String string;
string.resize(string_length + 1);
string.resize_uninitialized(string_length + 1);
char32_t *buffer = string.ptrw();
int current_position = 0;