diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-10-01 19:58:07 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-10-01 19:58:07 +0200 |
commit | 9e7560fae9d7c6484594f8a6e41adfb125f809d6 (patch) | |
tree | 0a324e5ba509bd2bbb47851816e177484b7ad867 /AK | |
parent | 3d4ed7f38def0b018c2a9c02da0e331e46f01f43 (diff) | |
download | serenity-9e7560fae9d7c6484594f8a6e41adfb125f809d6.zip |
AK: Make Bitmap constructors public to allow make<Bitmap>()
I don't love this, but I also don't love the Bitmap class in general.
Diffstat (limited to 'AK')
-rw-r--r-- | AK/Bitmap.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/AK/Bitmap.h b/AK/Bitmap.h index d06033d461..2aea15e074 100644 --- a/AK/Bitmap.h +++ b/AK/Bitmap.h @@ -131,7 +131,6 @@ public: return -1; } -private: explicit Bitmap() : m_size(0) , m_owned(true) @@ -155,6 +154,8 @@ private: { } +private: + int size_in_bytes() const { return ceil_div(m_size, 8); } u8* m_data { nullptr }; |