summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx/PNGLoader.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-04-16 23:40:49 +0200
committerAndreas Kling <kling@serenityos.org>2021-04-17 01:27:30 +0200
commite873d27ab122271758f4b89229278be7b5ddeaca (patch)
tree63918d6117ffeb2949496b9440b2eb6f70075078 /Userland/Libraries/LibGfx/PNGLoader.cpp
parent050648b2709a2ee30ec5ea20eb3c72b912fec0fe (diff)
downloadserenity-e873d27ab122271758f4b89229278be7b5ddeaca.zip
LibGfx: Switch a bunch of API's from taking StringView to String
These were all getting converted into String internally anyway.
Diffstat (limited to 'Userland/Libraries/LibGfx/PNGLoader.cpp')
-rw-r--r--Userland/Libraries/LibGfx/PNGLoader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGfx/PNGLoader.cpp b/Userland/Libraries/LibGfx/PNGLoader.cpp
index 3ff957bdad..e062b11a53 100644
--- a/Userland/Libraries/LibGfx/PNGLoader.cpp
+++ b/Userland/Libraries/LibGfx/PNGLoader.cpp
@@ -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())