summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx/FontDatabase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibGfx/FontDatabase.cpp')
-rw-r--r--Userland/Libraries/LibGfx/FontDatabase.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibGfx/FontDatabase.cpp b/Userland/Libraries/LibGfx/FontDatabase.cpp
index e761f5d89b..9a7645a17f 100644
--- a/Userland/Libraries/LibGfx/FontDatabase.cpp
+++ b/Userland/Libraries/LibGfx/FontDatabase.cpp
@@ -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);