mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
AK: Some more int => size_t in Bitmap
This commit is contained in:
parent
fbe4081f4b
commit
960cae924a
Notes:
sideshowbarker
2024-07-19 09:04:27 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/960cae924a0
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue