mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:07:35 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
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