mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:08:10 +00: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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue