mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:38:10 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
1665 changed files with 8479 additions and 8479 deletions
|
@ -26,7 +26,7 @@ MenuManager::MenuManager()
|
|||
s_the = this;
|
||||
}
|
||||
|
||||
bool MenuManager::is_open(const Menu& menu) const
|
||||
bool MenuManager::is_open(Menu const& menu) const
|
||||
{
|
||||
for (size_t i = 0; i < m_open_menu_stack.size(); ++i) {
|
||||
if (&menu == m_open_menu_stack[i].ptr())
|
||||
|
@ -55,7 +55,7 @@ void MenuManager::event(Core::Event& event)
|
|||
}
|
||||
|
||||
if (static_cast<Event&>(event).is_key_event()) {
|
||||
auto& key_event = static_cast<const KeyEvent&>(event);
|
||||
auto& key_event = static_cast<KeyEvent const&>(event);
|
||||
|
||||
if (key_event.type() == Event::KeyUp && key_event.key() == Key_Escape) {
|
||||
close_everyone();
|
||||
|
@ -85,7 +85,7 @@ void MenuManager::event(Core::Event& event)
|
|||
if (event.type() == Event::KeyDown) {
|
||||
|
||||
if (key_event.key() == Key_Left) {
|
||||
auto it = m_open_menu_stack.find_if([&](const auto& other) { return m_current_menu == other.ptr(); });
|
||||
auto it = m_open_menu_stack.find_if([&](auto const& other) { return m_current_menu == other.ptr(); });
|
||||
VERIFY(!it.is_end());
|
||||
|
||||
// Going "back" a menu should be the previous menu in the stack
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue