You've already forked godot
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user