mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-08 22:50:47 +00:00
AK: Some more int => size_t in Bitmap
This commit is contained in:
parent
fbe4081f4b
commit
960cae924a
|
@ -39,12 +39,12 @@ class Bitmap {
|
||||||
AK_MAKE_NONCOPYABLE(Bitmap)
|
AK_MAKE_NONCOPYABLE(Bitmap)
|
||||||
public:
|
public:
|
||||||
// NOTE: A wrapping Bitmap won't try to free the wrapped data.
|
// 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);
|
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);
|
return Bitmap(size, default_value);
|
||||||
}
|
}
|
||||||
|
@ -215,7 +215,7 @@ public:
|
||||||
fill(default_value);
|
fill(default_value);
|
||||||
}
|
}
|
||||||
|
|
||||||
Bitmap(u8* data, int size)
|
Bitmap(u8* data, size_t size)
|
||||||
: m_data(data)
|
: m_data(data)
|
||||||
, m_size(size)
|
, m_size(size)
|
||||||
, m_owned(false)
|
, m_owned(false)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user