mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 18:17:34 +00:00
AK: Remove try_
prefix from FixedArray creation functions
This commit is contained in:
parent
909c2a73c4
commit
9c08bb9555
26 changed files with 57 additions and 59 deletions
|
@ -25,7 +25,7 @@ public:
|
|||
static ErrorOr<NonnullRefPtr<Typed3DBuffer<T>>> try_create(int width, int height, int depth)
|
||||
{
|
||||
VERIFY(width > 0 && height > 0 && depth > 0);
|
||||
auto data = TRY(FixedArray<T>::try_create(width * height * depth));
|
||||
auto data = TRY(FixedArray<T>::create(width * height * depth));
|
||||
return adopt_ref(*new Typed3DBuffer(width, height, depth, move(data)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue