mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:47:35 +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 @@ private:
|
|||
static RefPtr<Gfx::Bitmap> load_png_impl(const u8*, size_t);
|
||||
static bool process_chunk(Streamer&, PNGLoadingContext& context);
|
||||
|
||||
RefPtr<Gfx::Bitmap> load_png(const StringView& path)
|
||||
RefPtr<Gfx::Bitmap> load_png(String const& path)
|
||||
{
|
||||
auto file_or_error = MappedFile::map(path);
|
||||
if (file_or_error.is_error())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue