From eaf88cc78a34edd9eab7f5bd5e29d30a10d3f565 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 3 Sep 2021 00:07:29 +0200 Subject: AK: Rename create => make_ref_counted And also try_create => try_make_ref_counted. A global "create" was a bit much. The new name matches make better, which we've used for making single-owner objects since forever. --- Kernel/Thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Kernel/Thread.cpp') diff --git a/Kernel/Thread.cpp b/Kernel/Thread.cpp index 8d14c8b959..bf45dea28a 100644 --- a/Kernel/Thread.cpp +++ b/Kernel/Thread.cpp @@ -44,7 +44,7 @@ KResultOr> Thread::try_create(NonnullRefPtr proce return ENOMEM; kernel_stack_region->set_stack(true); - auto block_timer = AK::try_create(); + auto block_timer = try_make_ref_counted(); if (!block_timer) return ENOMEM; -- cgit v1.2.3