mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:37:46 +00:00
Everywhere: Remove a bunch of redundant 'AK::' namespace prefixes
This is basically just for consistency, it's quite strange to see multiple AK container types next to each other, some with and some without the namespace prefix - we're 'using AK::Foo;' a lot and should leverage that. :^)
This commit is contained in:
parent
be9df404fd
commit
e265054c12
73 changed files with 111 additions and 110 deletions
|
@ -350,7 +350,7 @@ void AbstractTableView::layout_headers()
|
|||
|
||||
int x = frame_thickness() + row_header_width - horizontal_scrollbar().value();
|
||||
int y = frame_thickness();
|
||||
int width = AK::max(content_width(), rect().width() - frame_thickness() * 2 - row_header_width - vertical_scrollbar_width);
|
||||
int width = max(content_width(), rect().width() - frame_thickness() * 2 - row_header_width - vertical_scrollbar_width);
|
||||
|
||||
column_header().set_relative_rect(x, y, width, column_header().min_size().height());
|
||||
}
|
||||
|
@ -361,7 +361,7 @@ void AbstractTableView::layout_headers()
|
|||
|
||||
int x = frame_thickness();
|
||||
int y = frame_thickness() + column_header_height - vertical_scrollbar().value();
|
||||
int height = AK::max(content_height(), rect().height() - frame_thickness() * 2 - column_header_height - horizontal_scrollbar_height);
|
||||
int height = max(content_height(), rect().height() - frame_thickness() * 2 - column_header_height - horizontal_scrollbar_height);
|
||||
|
||||
row_header().set_relative_rect(x, y, row_header().min_size().width(), height);
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ void InputBox::build()
|
|||
|
||||
int text_width = widget.font().width(m_prompt);
|
||||
int title_width = widget.font().width(title()) + 24 /* icon, plus a little padding -- not perfect */;
|
||||
int max_width = AK::max(text_width, title_width);
|
||||
int max_width = max(text_width, title_width);
|
||||
|
||||
set_rect(x(), y(), max_width + 140, 62);
|
||||
|
||||
|
|
|
@ -257,7 +257,7 @@ Variant& Variant::operator=(Variant&& other)
|
|||
if (&other == this)
|
||||
return *this;
|
||||
clear();
|
||||
move_from(AK::move(other));
|
||||
move_from(move(other));
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ public:
|
|||
Variant(const Gfx::IntRect&);
|
||||
Variant(const Gfx::Font&);
|
||||
Variant(const Gfx::TextAlignment);
|
||||
Variant(const AK::JsonValue&);
|
||||
Variant(const JsonValue&);
|
||||
Variant(Color);
|
||||
|
||||
Variant(const Variant&);
|
||||
|
|
|
@ -178,7 +178,7 @@ void WindowServerConnection::handle(const Messages::WindowClient::KeyDown& messa
|
|||
key_event->m_key = Key_Invalid;
|
||||
key_event->m_modifiers = 0;
|
||||
|
||||
AK::Utf8View m_utf8_view(emoji_input_dialog->selected_emoji_text().characters());
|
||||
Utf8View m_utf8_view(emoji_input_dialog->selected_emoji_text().characters());
|
||||
u32 code_point = *m_utf8_view.begin();
|
||||
|
||||
key_event->m_code_point = code_point;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue