1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:57:45 +00:00

LibGfx: Switch a bunch of API's from taking StringView to String

These were all getting converted into String internally anyway.
This commit is contained in:
Andreas Kling 2021-04-16 23:40:49 +02:00
parent 050648b270
commit e873d27ab1
12 changed files with 17 additions and 17 deletions

View file

@ -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));