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:
@@ -824,7 +824,7 @@ Error ProjectSettings::_load_settings_binary(const String &p_path) {
|
||||
for (uint32_t i = 0; i < count; i++) {
|
||||
uint32_t slen = f->get_32();
|
||||
CharString cs;
|
||||
cs.resize(slen + 1);
|
||||
cs.resize_uninitialized(slen + 1);
|
||||
cs[slen] = 0;
|
||||
f->get_buffer((uint8_t *)cs.ptr(), slen);
|
||||
String key = String::utf8(cs.ptr(), slen);
|
||||
|
||||
Reference in New Issue
Block a user