From 45dd3749e027f5217ca5337cec11a18a4e303491 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Sat, 4 Apr 2026 15:00:05 -0400 Subject: [PATCH] xo-alloc2: minor streamline RCollector.std_copy_for For consistency with equivalent RAllocator version --- xo-alloc2/idl/Collector.json5 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xo-alloc2/idl/Collector.json5 b/xo-alloc2/idl/Collector.json5 index f7b8d3c8..491c42ae 100644 --- a/xo-alloc2/idl/Collector.json5 +++ b/xo-alloc2/idl/Collector.json5 @@ -315,9 +315,9 @@ "void * std_copy_for(const T * src) noexcept {", " void * mem = this->alloc_copy_for(src);", " if (mem) {", - " new (mem) T(std::move(*src));", + " return new (mem) T(std::move(*src));", " }", - " return (T *)mem;", + " return nullptr;", "}", "", "/** forward faceted object pointer in place. Defined in GCObject.hpp to avoid #include cycle **/",