mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:07:35 +00:00
LibGfx: Fix const-correctness issues
This commit is contained in:
parent
38b6eedd54
commit
bfe081caad
9 changed files with 16 additions and 13 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue