1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 22:47:44 +00:00

Kernel: Avoid unnecessary allocations for TTY::tty_name()

This commit is contained in:
Gunnar Beutner 2021-05-12 22:47:06 +02:00 committed by Andreas Kling
parent 93c3b6bdd2
commit 8b079a6b0d
4 changed files with 4 additions and 4 deletions

View file

@ -31,7 +31,7 @@ SlavePTY::~SlavePTY()
DevPtsFS::unregister_slave_pty(*this);
}
String SlavePTY::tty_name() const
String const& SlavePTY::tty_name() const
{
return m_tty_name;
}