mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Rename String::resize
to resize_uninitialized
, to better communicate to callers that new characters must be initialized.
This commit is contained in:
parent
51b0379e55
commit
b13a0e1834
26 changed files with 103 additions and 98 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue