LibGUI: Make Dialog::ScreenPosition an enum class

This commit is contained in:
Sam Atkins 2022-05-13 14:19:18 +01:00 committed by Linus Groh
commit cd5210a87a
Notes: sideshowbarker 2024-07-17 10:55:02 +09:00
3 changed files with 14 additions and 14 deletions

View file

@ -22,7 +22,7 @@ public:
Yes = 3,
No = 4,
};
enum ScreenPosition {
enum class ScreenPosition {
CenterWithinParent = 0,
Center = 1,
@ -50,12 +50,12 @@ public:
virtual void close() override;
protected:
explicit Dialog(Window* parent_window, ScreenPosition screen_position = CenterWithinParent);
explicit Dialog(Window* parent_window, ScreenPosition = ScreenPosition::CenterWithinParent);
private:
OwnPtr<Core::EventLoop> m_event_loop;
ExecResult m_result { ExecResult::Aborted };
int m_screen_position { CenterWithinParent };
ScreenPosition m_screen_position { ScreenPosition::CenterWithinParent };
};
}