summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-25 15:11:15 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-25 15:11:15 +0100
commit960cae924a05211190378f163807a08f3e0ca3b6 (patch)
treeec87675938591636152b99d0658f0e26e211fe57
parentfbe4081f4bebf90cd82827bd3ae27887518d6136 (diff)
downloadserenity-960cae924a05211190378f163807a08f3e0ca3b6.zip
AK: Some more int => size_t in Bitmap
-rw-r--r--AK/Bitmap.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/AK/Bitmap.h b/AK/Bitmap.h
index 6495a24300..dff3a61b50 100644
--- a/AK/Bitmap.h
+++ b/AK/Bitmap.h
@@ -39,12 +39,12 @@ class Bitmap {
AK_MAKE_NONCOPYABLE(Bitmap)
public:
// NOTE: A wrapping Bitmap won't try to free the wrapped data.
- static Bitmap wrap(u8* data, int size)
+ static Bitmap wrap(u8* data, size_t size)
{
return Bitmap(data, size);
}
- static Bitmap create(int size, bool default_value = 0)
+ static Bitmap create(size_t size, bool default_value = 0)
{
return Bitmap(size, default_value);
}
@@ -215,7 +215,7 @@ public:
fill(default_value);
}
- Bitmap(u8* data, int size)
+ Bitmap(u8* data, size_t size)
: m_data(data)
, m_size(size)
, m_owned(false)