Use append_ instead of parse_ for String methods.

This commit is contained in:
Lukas Tenbrink 2025-03-24 12:25:48 +01:00
parent 594d64ec24
commit ffa6ef220b
62 changed files with 245 additions and 274 deletions

View file

@ -198,12 +198,14 @@ WebRTCDataChannelJS::WebRTCDataChannelJS(int js_id) {
// Parse label
char *label = godot_js_rtc_datachannel_label_get(js_id);
if (label) {
_label.parse_utf8(label);
_label.clear();
_label.append_utf8(label);
free(label);
}
char *protocol = godot_js_rtc_datachannel_protocol_get(js_id);
if (protocol) {
_protocol.parse_utf8(protocol);
_protocol.clear();
_protocol.append_utf8(protocol);
free(protocol);
}
}