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:
parent
050648b270
commit
e873d27ab1
12 changed files with 17 additions and 17 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue