summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2023-03-15 11:27:10 +0100
committerLinus Groh <mail@linusgroh.de>2023-03-15 11:02:41 +0000
commitfd57ba1d903b2e1f84d26833e9598d07503f75ae (patch)
tree373a4328f80c85494b3b4447d5ec59687ee1fb25 /Userland/Libraries/LibGfx
parent1a03f45a7344781d63e39bbf58aef3c3ab69fbdf (diff)
downloadserenity-fd57ba1d903b2e1f84d26833e9598d07503f75ae.zip
LibGfx: Use * a b s t r a c t i o n * in PNGChunk::store_type()
Diffstat (limited to 'Userland/Libraries/LibGfx')
-rw-r--r--Userland/Libraries/LibGfx/PNGWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGfx/PNGWriter.cpp b/Userland/Libraries/LibGfx/PNGWriter.cpp
index d074f4503f..e6f772a2c1 100644
--- a/Userland/Libraries/LibGfx/PNGWriter.cpp
+++ b/Userland/Libraries/LibGfx/PNGWriter.cpp
@@ -55,7 +55,7 @@ PNGChunk::PNGChunk(DeprecatedString type)
ErrorOr<void> PNGChunk::store_type()
{
- TRY(m_data.try_append(type().bytes()));
+ TRY(add(type().bytes()));
return {};
}