mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 10:18:15 +09: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
Notes:
sideshowbarker
2024-07-19 17:33:19 +09:00
Author: https://github.com/fraang 🔰
Commit: 971a42a816
Pull-request: https://github.com/SerenityOS/serenity/pull/2804
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