mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:17:35 +00:00
Meta+Services: Make clang-format-10 clean
This commit is contained in:
parent
42dd0675c0
commit
934d4d4033
8 changed files with 32 additions and 30 deletions
|
@ -58,7 +58,7 @@ private:
|
|||
painter.fill_rect(rect(), palette().button());
|
||||
painter.draw_line({ 0, 1 }, { width() - 1, 1 }, palette().threed_highlight());
|
||||
}
|
||||
|
||||
|
||||
virtual void did_layout() override
|
||||
{
|
||||
WindowList::the().for_each_window([&](auto& window) {
|
||||
|
|
|
@ -36,15 +36,14 @@ WindowList& WindowList::the()
|
|||
|
||||
Window* WindowList::find_parent(const Window& window)
|
||||
{
|
||||
if (!window.parent_identifier().is_valid())
|
||||
return nullptr;
|
||||
for (auto& it : m_windows)
|
||||
{
|
||||
auto& w = *it.value;
|
||||
if (w.identifier() == window.parent_identifier())
|
||||
return &w;
|
||||
}
|
||||
return nullptr;
|
||||
if (!window.parent_identifier().is_valid())
|
||||
return nullptr;
|
||||
for (auto& it : m_windows) {
|
||||
auto& w = *it.value;
|
||||
if (w.identifier() == window.parent_identifier())
|
||||
return &w;
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Window* WindowList::window(const WindowIdentifier& identifier)
|
||||
|
|
|
@ -27,8 +27,8 @@
|
|||
#pragma once
|
||||
|
||||
#include "WindowIdentifier.h"
|
||||
#include <AK/String.h>
|
||||
#include <AK/HashMap.h>
|
||||
#include <AK/String.h>
|
||||
#include <LibGUI/Button.h>
|
||||
#include <LibGfx/Rect.h>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue