Merge pull request #106913 from Ivorforce/string-resize-uninitialized

Rename `String::resize` to `resize_uninitialized`
This commit is contained in:
Rémi Verschelde
2025-06-12 22:48:45 +02:00
26 changed files with 103 additions and 98 deletions

View File

@@ -212,7 +212,7 @@ String RichTextLabel::_letters(int p_num, bool p_capitalize) const {
} while (n);
String s;
s.resize(chars + 1);
s.resize_uninitialized(chars + 1);
char32_t *c = s.ptrw();
c[chars] = 0;
n = p_num;