Rename String::resize to resize_uninitialized, to better communicate to callers that new characters must be initialized.
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user