mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +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
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue