mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 10:22:05 -05:00
Kernel: Make the VirtualConsole index const unsigned instead of unsigned
const: The index should not be modified in the constructor to avoid unexpected behavior
This commit is contained in:
parent
df58ea808e
commit
971a42a816
2 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,7 @@ void VirtualConsole::set_graphical(bool graphical)
|
|||
m_graphical = graphical;
|
||||
}
|
||||
|
||||
VirtualConsole::VirtualConsole(unsigned index)
|
||||
VirtualConsole::VirtualConsole(const unsigned index)
|
||||
: TTY(4, index)
|
||||
, m_index(index)
|
||||
, m_terminal(*this)
|
||||
|
|
|
@ -38,7 +38,7 @@ class VirtualConsole final : public TTY
|
|||
, public VT::TerminalClient {
|
||||
AK_MAKE_ETERNAL
|
||||
public:
|
||||
VirtualConsole(unsigned index);
|
||||
VirtualConsole(const unsigned index);
|
||||
virtual ~VirtualConsole() override;
|
||||
|
||||
static void switch_to(unsigned);
|
||||
|
|
Loading…
Add table
Reference in a new issue