diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-05-12 22:47:06 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-13 08:27:42 +0200 |
commit | 8b079a6b0d64369389d19a269ab0a2c52289886c (patch) | |
tree | 3a88fadfbaeae50543230934acd79feb2be5c730 /Kernel/TTY/VirtualConsole.h | |
parent | 93c3b6bdd249f6410f18be782fb12a9451ebf7c7 (diff) | |
download | serenity-8b079a6b0d64369389d19a269ab0a2c52289886c.zip |
Kernel: Avoid unnecessary allocations for TTY::tty_name()
Diffstat (limited to 'Kernel/TTY/VirtualConsole.h')
-rw-r--r-- | Kernel/TTY/VirtualConsole.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/TTY/VirtualConsole.h b/Kernel/TTY/VirtualConsole.h index 78dbba425f..5f946357da 100644 --- a/Kernel/TTY/VirtualConsole.h +++ b/Kernel/TTY/VirtualConsole.h @@ -35,7 +35,7 @@ private: // ^TTY virtual ssize_t on_tty_write(const UserOrKernelBuffer&, ssize_t) override; - virtual String tty_name() const override { return m_tty_name; } + virtual String const& tty_name() const override { return m_tty_name; } virtual void echo(u8) override; // ^TerminalClient |