From 4d40864b9dc3837c00b1d02b567d6a648e0048f2 Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Sun, 14 Feb 2021 14:49:08 +0330 Subject: [PATCH] AK: Make the Bitmap::size_in_bytes() member function public It's annoying to calculate it when it's already a member function. --- AK/Bitmap.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/AK/Bitmap.h b/AK/Bitmap.h index 0ff6d744bba..a9129e3cd1d 100644 --- a/AK/Bitmap.h +++ b/AK/Bitmap.h @@ -82,6 +82,7 @@ public: } size_t size() const { return m_size; } + size_t size_in_bytes() const { return ceil_div(m_size, static_cast(8)); } bool get(size_t index) const { ASSERT(index < m_size); @@ -523,8 +524,6 @@ public: static constexpr u32 max_size = 0xffffffff; private: - size_t size_in_bytes() const { return ceil_div(m_size, static_cast(8)); } - u8* m_data { nullptr }; size_t m_size { 0 }; bool m_owned { false };