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
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue