summaryrefslogtreecommitdiff
path: root/Kernel/KBufferBuilder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/KBufferBuilder.cpp')
-rw-r--r--Kernel/KBufferBuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/KBufferBuilder.cpp b/Kernel/KBufferBuilder.cpp
index d1665b09ef..10bc9636be 100644
--- a/Kernel/KBufferBuilder.cpp
+++ b/Kernel/KBufferBuilder.cpp
@@ -39,7 +39,7 @@ OwnPtr<KBuffer> KBufferBuilder::build()
if (!flush())
return {};
- return adopt_own_if_nonnull(new KBuffer(move(m_buffer)));
+ return try_make<KBuffer>(move(m_buffer));
}
KBufferBuilder::KBufferBuilder(bool can_expand)