mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:07:34 +00:00
LibVT: Use StringBuilder::string_view() instead of to_string()
This let's us avoid a heap allocation.
This commit is contained in:
parent
b22cb40565
commit
ccad3d5a39
1 changed files with 1 additions and 2 deletions
|
@ -1441,8 +1441,7 @@ void Terminal::handle_key_press(KeyCode key, u32 code_point, u8 flags)
|
|||
|
||||
StringBuilder sb;
|
||||
sb.append_code_point(code_point);
|
||||
|
||||
emit_string(sb.to_string());
|
||||
emit_string(sb.string_view());
|
||||
}
|
||||
|
||||
void Terminal::unimplemented_control_code(u8 code)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue