summaryrefslogtreecommitdiff
path: root/AK/Bitmap.h
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-12-20 16:34:13 +0000
committerAndreas Kling <kling@serenityos.org>2022-12-22 15:48:53 +0100
commitbed5961fc21ea499ede556d6269df29b8a7a9e15 (patch)
treec84c9050a0dbbd948f54cb0829d0b98d42cf3af2 /AK/Bitmap.h
parentc4e8509aacee087b05d9797ab013ac5b9020ea72 (diff)
downloadserenity-bed5961fc21ea499ede556d6269df29b8a7a9e15.zip
AK: Rename Bitmap::try_create() to ::create()
This is step 1 to removing `must_create()`.
Diffstat (limited to 'AK/Bitmap.h')
-rw-r--r--AK/Bitmap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/AK/Bitmap.h b/AK/Bitmap.h
index d39fd01842..ff5ac5ef69 100644
--- a/AK/Bitmap.h
+++ b/AK/Bitmap.h
@@ -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;