summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx/BMPWriter.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2023-02-20 19:03:29 +0100
committerAndreas Kling <kling@serenityos.org>2023-02-21 00:54:04 +0100
commitbfe081caadceaabf9104fbc464d15d705752a78f (patch)
treee0d90a85129acf8d2b856a859b85938b783d1454 /Userland/Libraries/LibGfx/BMPWriter.cpp
parent38b6eedd544a6e24eb72ff10e86e689c0028caa4 (diff)
downloadserenity-bfe081caadceaabf9104fbc464d15d705752a78f.zip
LibGfx: Fix const-correctness issues
Diffstat (limited to 'Userland/Libraries/LibGfx/BMPWriter.cpp')
-rw-r--r--Userland/Libraries/LibGfx/BMPWriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGfx/BMPWriter.cpp b/Userland/Libraries/LibGfx/BMPWriter.cpp
index 9b4a9c08ec..5bdbd1a283 100644
--- a/Userland/Libraries/LibGfx/BMPWriter.cpp
+++ b/Userland/Libraries/LibGfx/BMPWriter.cpp
@@ -42,7 +42,7 @@ private:
u8* m_data;
};
-static ByteBuffer write_pixel_data(RefPtr<Bitmap> const bitmap, int pixel_row_data_size, int bytes_per_pixel, bool include_alpha_channel)
+static ByteBuffer write_pixel_data(RefPtr<Bitmap const> bitmap, int pixel_row_data_size, int bytes_per_pixel, bool include_alpha_channel)
{
int image_size = pixel_row_data_size * bitmap->height();
auto buffer_result = ByteBuffer::create_uninitialized(image_size);
@@ -78,7 +78,7 @@ static ByteBuffer compress_pixel_data(ByteBuffer const& pixel_data, BMPWriter::C
VERIFY_NOT_REACHED();
}
-ByteBuffer BMPWriter::dump(RefPtr<Bitmap> const bitmap, DibHeader dib_header)
+ByteBuffer BMPWriter::dump(RefPtr<Bitmap const> bitmap, DibHeader dib_header)
{
switch (dib_header) {