You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Replace append_utfx with direct String::utfx
This commit is contained in:
@@ -4140,10 +4140,7 @@ String WaylandThread::keyboard_get_layout_name(int p_index) const {
|
||||
SeatState *ss = wl_seat_get_seat_state(wl_seat_current);
|
||||
|
||||
if (ss && ss->xkb_keymap) {
|
||||
String ret;
|
||||
ret.append_utf8(xkb_keymap_layout_get_name(ss->xkb_keymap, p_index));
|
||||
|
||||
return ret;
|
||||
return String::utf8(xkb_keymap_layout_get_name(ss->xkb_keymap, p_index));
|
||||
}
|
||||
|
||||
return "";
|
||||
|
||||
Reference in New Issue
Block a user