mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 10:09:14 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
Notes:
sideshowbarker
2024-07-17 16:21:09 +09:00
Author: https://github.com/IdanHo
Commit: 086969277e
Pull-request: https://github.com/SerenityOS/serenity/pull/12321
Reviewed-by: https://github.com/BertalanD
Reviewed-by: https://github.com/bgianfo ✅
1665 changed files with 8479 additions and 8479 deletions
|
@ -119,7 +119,7 @@ FontDatabase::FontDatabase()
|
|||
}
|
||||
}
|
||||
|
||||
void FontDatabase::for_each_font(Function<void(const Gfx::Font&)> callback)
|
||||
void FontDatabase::for_each_font(Function<void(Gfx::Font const&)> callback)
|
||||
{
|
||||
Vector<RefPtr<Gfx::Font>> fonts;
|
||||
fonts.ensure_capacity(m_private->full_name_to_font_map.size());
|
||||
|
@ -130,7 +130,7 @@ void FontDatabase::for_each_font(Function<void(const Gfx::Font&)> callback)
|
|||
callback(*font);
|
||||
}
|
||||
|
||||
void FontDatabase::for_each_fixed_width_font(Function<void(const Gfx::Font&)> callback)
|
||||
void FontDatabase::for_each_fixed_width_font(Function<void(Gfx::Font const&)> callback)
|
||||
{
|
||||
Vector<RefPtr<Gfx::Font>> fonts;
|
||||
fonts.ensure_capacity(m_private->full_name_to_font_map.size());
|
||||
|
@ -179,7 +179,7 @@ RefPtr<Gfx::Font> FontDatabase::get(FlyString const& family, FlyString const& va
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
RefPtr<Typeface> FontDatabase::get_or_create_typeface(const String& family, const String& variant)
|
||||
RefPtr<Typeface> FontDatabase::get_or_create_typeface(String const& family, String const& variant)
|
||||
{
|
||||
for (auto typeface : m_private->typefaces) {
|
||||
if (typeface->family() == family && typeface->variant() == variant)
|
||||
|
@ -190,7 +190,7 @@ RefPtr<Typeface> FontDatabase::get_or_create_typeface(const String& family, cons
|
|||
return typeface;
|
||||
}
|
||||
|
||||
void FontDatabase::for_each_typeface(Function<void(const Typeface&)> callback)
|
||||
void FontDatabase::for_each_typeface(Function<void(Typeface const&)> callback)
|
||||
{
|
||||
for (auto typeface : m_private->typefaces) {
|
||||
callback(*typeface);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue