summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx/BitmapFont.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibGfx/BitmapFont.cpp')
-rw-r--r--Userland/Libraries/LibGfx/BitmapFont.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGfx/BitmapFont.cpp b/Userland/Libraries/LibGfx/BitmapFont.cpp
index 84caf7f07a..5fda354fda 100644
--- a/Userland/Libraries/LibGfx/BitmapFont.cpp
+++ b/Userland/Libraries/LibGfx/BitmapFont.cpp
@@ -190,7 +190,7 @@ String BitmapFont::type_name_by_type(FontTypes type)
VERIFY_NOT_REACHED();
}
-RefPtr<BitmapFont> BitmapFont::load_from_file(const StringView& path)
+RefPtr<BitmapFont> BitmapFont::load_from_file(String const& path)
{
if (Core::File::is_device(path))
return nullptr;
@@ -207,7 +207,7 @@ RefPtr<BitmapFont> BitmapFont::load_from_file(const StringView& path)
return font;
}
-bool BitmapFont::write_to_file(const StringView& path)
+bool BitmapFont::write_to_file(String const& path)
{
FontFileHeader header;
memset(&header, 0, sizeof(FontFileHeader));