From d4e951fdedb3730c9e4f08d2d4d303d82a6cf938 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Sat, 4 Apr 2026 16:54:46 -0400 Subject: [PATCH] refactor: void return type for Collector.forward_children() --- include/xo/object2/array/IGCObject_DArray.hpp | 2 +- include/xo/object2/boolean/IGCObject_DBoolean.hpp | 2 +- include/xo/object2/dictionary/IGCObject_DDictionary.hpp | 2 +- include/xo/object2/error/IGCObject_DRuntimeError.hpp | 2 +- include/xo/object2/list/IGCObject_DList.hpp | 2 +- include/xo/object2/number/IGCObject_DFloat.hpp | 2 +- include/xo/object2/number/IGCObject_DInteger.hpp | 2 +- src/object2/IGCObject_DArray.cpp | 4 ++-- src/object2/IGCObject_DBoolean.cpp | 4 ++-- src/object2/IGCObject_DDictionary.cpp | 4 ++-- src/object2/IGCObject_DFloat.cpp | 4 ++-- src/object2/IGCObject_DInteger.cpp | 4 ++-- src/object2/IGCObject_DList.cpp | 4 ++-- src/object2/IGCObject_DRuntimeError.cpp | 4 ++-- 14 files changed, 21 insertions(+), 21 deletions(-) diff --git a/include/xo/object2/array/IGCObject_DArray.hpp b/include/xo/object2/array/IGCObject_DArray.hpp index 58c202d..5540d32 100644 --- a/include/xo/object2/array/IGCObject_DArray.hpp +++ b/include/xo/object2/array/IGCObject_DArray.hpp @@ -55,7 +55,7 @@ namespace xo { /** move instance using allocator **/ static Opaque shallow_move(DArray & self, obj gc) noexcept; /** during GC: forward immdiate children **/ - static size_type forward_children(DArray & self, obj gc) noexcept; + static void forward_children(DArray & self, obj gc) noexcept; ///@} }; diff --git a/include/xo/object2/boolean/IGCObject_DBoolean.hpp b/include/xo/object2/boolean/IGCObject_DBoolean.hpp index 3ca0392..2711b1e 100644 --- a/include/xo/object2/boolean/IGCObject_DBoolean.hpp +++ b/include/xo/object2/boolean/IGCObject_DBoolean.hpp @@ -55,7 +55,7 @@ namespace xo { /** move instance using allocator **/ static Opaque shallow_move(DBoolean & self, obj gc) noexcept; /** during GC: forward immdiate children **/ - static size_type forward_children(DBoolean & self, obj gc) noexcept; + static void forward_children(DBoolean & self, obj gc) noexcept; ///@} }; diff --git a/include/xo/object2/dictionary/IGCObject_DDictionary.hpp b/include/xo/object2/dictionary/IGCObject_DDictionary.hpp index b6da10c..375c4a6 100644 --- a/include/xo/object2/dictionary/IGCObject_DDictionary.hpp +++ b/include/xo/object2/dictionary/IGCObject_DDictionary.hpp @@ -55,7 +55,7 @@ namespace xo { /** move instance using allocator **/ static Opaque shallow_move(DDictionary & self, obj gc) noexcept; /** during GC: forward immdiate children **/ - static size_type forward_children(DDictionary & self, obj gc) noexcept; + static void forward_children(DDictionary & self, obj gc) noexcept; ///@} }; diff --git a/include/xo/object2/error/IGCObject_DRuntimeError.hpp b/include/xo/object2/error/IGCObject_DRuntimeError.hpp index 42e273e..2726b69 100644 --- a/include/xo/object2/error/IGCObject_DRuntimeError.hpp +++ b/include/xo/object2/error/IGCObject_DRuntimeError.hpp @@ -55,7 +55,7 @@ namespace xo { /** move instance using allocator **/ static Opaque shallow_move(DRuntimeError & self, obj gc) noexcept; /** during GC: forward immdiate children **/ - static size_type forward_children(DRuntimeError & self, obj gc) noexcept; + static void forward_children(DRuntimeError & self, obj gc) noexcept; ///@} }; diff --git a/include/xo/object2/list/IGCObject_DList.hpp b/include/xo/object2/list/IGCObject_DList.hpp index 7218556..78836d0 100644 --- a/include/xo/object2/list/IGCObject_DList.hpp +++ b/include/xo/object2/list/IGCObject_DList.hpp @@ -55,7 +55,7 @@ namespace xo { /** move instance using allocator **/ static Opaque shallow_move(DList & self, obj gc) noexcept; /** during GC: forward immdiate children **/ - static size_type forward_children(DList & self, obj gc) noexcept; + static void forward_children(DList & self, obj gc) noexcept; ///@} }; diff --git a/include/xo/object2/number/IGCObject_DFloat.hpp b/include/xo/object2/number/IGCObject_DFloat.hpp index 88d4d56..8f78a0b 100644 --- a/include/xo/object2/number/IGCObject_DFloat.hpp +++ b/include/xo/object2/number/IGCObject_DFloat.hpp @@ -56,7 +56,7 @@ namespace xo { /** move instance using allocator **/ static Opaque shallow_move(DFloat & self, obj gc) noexcept; /** during GC: forward immdiate children **/ - static size_type forward_children(DFloat & self, obj gc) noexcept; + static void forward_children(DFloat & self, obj gc) noexcept; ///@} }; diff --git a/include/xo/object2/number/IGCObject_DInteger.hpp b/include/xo/object2/number/IGCObject_DInteger.hpp index 822ec16..5e135ed 100644 --- a/include/xo/object2/number/IGCObject_DInteger.hpp +++ b/include/xo/object2/number/IGCObject_DInteger.hpp @@ -55,7 +55,7 @@ namespace xo { /** move instance using allocator **/ static Opaque shallow_move(DInteger & self, obj gc) noexcept; /** during GC: forward immdiate children **/ - static size_type forward_children(DInteger & self, obj gc) noexcept; + static void forward_children(DInteger & self, obj gc) noexcept; ///@} }; diff --git a/src/object2/IGCObject_DArray.cpp b/src/object2/IGCObject_DArray.cpp index e4fa31c..79273db 100644 --- a/src/object2/IGCObject_DArray.cpp +++ b/src/object2/IGCObject_DArray.cpp @@ -27,9 +27,9 @@ namespace xo { return self.shallow_move(gc); } auto - IGCObject_DArray::forward_children(DArray & self, obj gc) noexcept -> size_type + IGCObject_DArray::forward_children(DArray & self, obj gc) noexcept -> void { - return self.forward_children(gc); + self.forward_children(gc); } } /*namespace scm*/ diff --git a/src/object2/IGCObject_DBoolean.cpp b/src/object2/IGCObject_DBoolean.cpp index 2aed50e..10e97b2 100644 --- a/src/object2/IGCObject_DBoolean.cpp +++ b/src/object2/IGCObject_DBoolean.cpp @@ -27,9 +27,9 @@ namespace xo { return self.shallow_move(gc); } auto - IGCObject_DBoolean::forward_children(DBoolean & self, obj gc) noexcept -> size_type + IGCObject_DBoolean::forward_children(DBoolean & self, obj gc) noexcept -> void { - return self.forward_children(gc); + self.forward_children(gc); } } /*namespace scm*/ diff --git a/src/object2/IGCObject_DDictionary.cpp b/src/object2/IGCObject_DDictionary.cpp index e8f291a..bcdef5b 100644 --- a/src/object2/IGCObject_DDictionary.cpp +++ b/src/object2/IGCObject_DDictionary.cpp @@ -27,9 +27,9 @@ namespace xo { return self.shallow_move(gc); } auto - IGCObject_DDictionary::forward_children(DDictionary & self, obj gc) noexcept -> size_type + IGCObject_DDictionary::forward_children(DDictionary & self, obj gc) noexcept -> void { - return self.forward_children(gc); + self.forward_children(gc); } } /*namespace scm*/ diff --git a/src/object2/IGCObject_DFloat.cpp b/src/object2/IGCObject_DFloat.cpp index 7625cac..f2a1aa3 100644 --- a/src/object2/IGCObject_DFloat.cpp +++ b/src/object2/IGCObject_DFloat.cpp @@ -27,9 +27,9 @@ namespace xo { return self.shallow_move(gc); } auto - IGCObject_DFloat::forward_children(DFloat & self, obj gc) noexcept -> size_type + IGCObject_DFloat::forward_children(DFloat & self, obj gc) noexcept -> void { - return self.forward_children(gc); + self.forward_children(gc); } } /*namespace scm*/ diff --git a/src/object2/IGCObject_DInteger.cpp b/src/object2/IGCObject_DInteger.cpp index 9bb9bbf..b0233bf 100644 --- a/src/object2/IGCObject_DInteger.cpp +++ b/src/object2/IGCObject_DInteger.cpp @@ -27,9 +27,9 @@ namespace xo { return self.shallow_move(gc); } auto - IGCObject_DInteger::forward_children(DInteger & self, obj gc) noexcept -> size_type + IGCObject_DInteger::forward_children(DInteger & self, obj gc) noexcept -> void { - return self.forward_children(gc); + self.forward_children(gc); } } /*namespace scm*/ diff --git a/src/object2/IGCObject_DList.cpp b/src/object2/IGCObject_DList.cpp index cbe8b71..813db3d 100644 --- a/src/object2/IGCObject_DList.cpp +++ b/src/object2/IGCObject_DList.cpp @@ -27,9 +27,9 @@ namespace xo { return self.shallow_move(gc); } auto - IGCObject_DList::forward_children(DList & self, obj gc) noexcept -> size_type + IGCObject_DList::forward_children(DList & self, obj gc) noexcept -> void { - return self.forward_children(gc); + self.forward_children(gc); } } /*namespace scm*/ diff --git a/src/object2/IGCObject_DRuntimeError.cpp b/src/object2/IGCObject_DRuntimeError.cpp index 6917af7..b8e5dbd 100644 --- a/src/object2/IGCObject_DRuntimeError.cpp +++ b/src/object2/IGCObject_DRuntimeError.cpp @@ -27,9 +27,9 @@ namespace xo { return self.shallow_move(gc); } auto - IGCObject_DRuntimeError::forward_children(DRuntimeError & self, obj gc) noexcept -> size_type + IGCObject_DRuntimeError::forward_children(DRuntimeError & self, obj gc) noexcept -> void { - return self.forward_children(gc); + self.forward_children(gc); } } /*namespace scm*/