Rename String::resize to resize_uninitialized, to better communicate to callers that new characters must be initialized.

This commit is contained in:
Lukas Tenbrink 2025-05-28 20:33:21 +02:00
parent 51b0379e55
commit b13a0e1834
26 changed files with 103 additions and 98 deletions

View file

@ -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];
}