mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:47:44 +00:00
Everywhere: Mark overridden methods 'override'
This is good practice, and fixes some IDE warnings.
This commit is contained in:
parent
2e6bb987a3
commit
6b75a4dfc3
5 changed files with 9 additions and 9 deletions
|
@ -156,8 +156,8 @@ public:
|
|||
Function<void(Color)> on_color_changed;
|
||||
|
||||
private:
|
||||
virtual void mousedown_event(GUI::MouseEvent&) { m_event_loop->quit(1); }
|
||||
virtual void mousemove_event(GUI::MouseEvent&)
|
||||
virtual void mousedown_event(GUI::MouseEvent&) override { m_event_loop->quit(1); }
|
||||
virtual void mousemove_event(GUI::MouseEvent&) override
|
||||
{
|
||||
auto new_col = WindowServerConnection::the().get_color_under_cursor();
|
||||
if (new_col == m_col)
|
||||
|
@ -167,7 +167,7 @@ private:
|
|||
on_color_changed(m_col);
|
||||
}
|
||||
|
||||
virtual void keydown_event(GUI::KeyEvent& event)
|
||||
virtual void keydown_event(GUI::KeyEvent& event) override
|
||||
{
|
||||
if (event.key() == KeyCode::Key_Escape) {
|
||||
event.accept();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue