mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Use append_
instead of parse_
for String
methods.
This commit is contained in:
parent
594d64ec24
commit
ffa6ef220b
62 changed files with 245 additions and 274 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue