You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Rename String::resize to resize_uninitialized, to better communicate to callers that new characters must be initialized.
This commit is contained in:
@@ -358,7 +358,7 @@ String ShaderPreprocessor::vector_to_string(const LocalVector<char32_t> &p_v, in
|
||||
const int count = stop - p_start;
|
||||
|
||||
String result;
|
||||
result.resize(count + 1);
|
||||
result.resize_uninitialized(count + 1);
|
||||
for (int i = 0; i < count; i++) {
|
||||
result[i] = p_v[p_start + i];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user