mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:47:45 +00:00
AK: Rename Bitmap::try_create() to ::create()
This is step 1 to removing `must_create()`.
This commit is contained in:
parent
c4e8509aac
commit
bed5961fc2
5 changed files with 8 additions and 8 deletions
|
@ -22,7 +22,7 @@ class Bitmap : public BitmapView {
|
|||
AK_MAKE_NONCOPYABLE(Bitmap);
|
||||
|
||||
public:
|
||||
static ErrorOr<Bitmap> try_create(size_t size, bool default_value)
|
||||
static ErrorOr<Bitmap> create(size_t size, bool default_value)
|
||||
{
|
||||
VERIFY(size != 0);
|
||||
|
||||
|
@ -37,7 +37,7 @@ public:
|
|||
|
||||
static Bitmap must_create(size_t size, bool default_value)
|
||||
{
|
||||
return MUST(try_create(size, default_value));
|
||||
return MUST(create(size, default_value));
|
||||
}
|
||||
|
||||
Bitmap() = default;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue