Rename String::resize to resize_uninitialized, to better communicate to callers that new characters must be initialized.
This commit is contained in:
1 parent
51b0379e55
commit
b13a0e1834
26 files changed
+103
-98
No files matched your search
@@ -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