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

@ -119,7 +119,7 @@ void _append_hex(float p_val, char32_t *string) {
String Color::to_html(bool p_alpha) const {
String txt;
txt.resize(p_alpha ? 9 : 7);
txt.resize_uninitialized(p_alpha ? 9 : 7);
char32_t *ptr = txt.ptrw();
_append_hex(r, ptr + 0);