From ddaeb294dc8d76f3636cd1dcab88a67d6b3e0610 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 4 Mar 2021 10:05:07 +0100 Subject: [PATCH] AK: Add Bitmap::is_null() This class has a null state but there was no API to check for it. --- AK/Bitmap.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AK/Bitmap.h b/AK/Bitmap.h index 9c7a468829..8d8deda091 100644 --- a/AK/Bitmap.h +++ b/AK/Bitmap.h @@ -148,6 +148,8 @@ public: return count; } + bool is_null() const { return !m_data; } + u8* data() { return m_data; } const u8* data() const { return m_data; }