mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-25 01:47:28 +00:00
AK: Convert AK::Format formatting helpers to returning ErrorOr<void>
This isn't a complete conversion to ErrorOr<void>, but a good chunk. The end goal here is to propagate buffer allocation failures to the caller, and allow the use of TRY() with formatting functions.
This commit is contained in:
@@ -1279,7 +1279,7 @@ void Thread::track_lock_release(LockRank rank)
|
||||
|
||||
}
|
||||
|
||||
void AK::Formatter<Kernel::Thread>::format(FormatBuilder& builder, const Kernel::Thread& value)
|
||||
ErrorOr<void> AK::Formatter<Kernel::Thread>::format(FormatBuilder& builder, Kernel::Thread const& value)
|
||||
{
|
||||
return AK::Formatter<FormatString>::format(
|
||||
builder,
|
||||
|
||||
Reference in New Issue
Block a user