diff --git a/src/object2/DArray.cpp b/src/object2/DArray.cpp index a70213f..a9ed928 100644 --- a/src/object2/DArray.cpp +++ b/src/object2/DArray.cpp @@ -183,7 +183,7 @@ namespace xo { DArray * DArray::shallow_move(obj gc) noexcept { - // note: not using gc.std_copy_for() here. + // note: not using gc.std_move_for() here. // flexible array -> compiler doesn't know actual DArray allocation size DArray * copy = (DArray *)gc.alloc_copy((std::byte *)this); diff --git a/src/object2/DBoolean.cpp b/src/object2/DBoolean.cpp index a8d5e85..f24429e 100644 --- a/src/object2/DBoolean.cpp +++ b/src/object2/DBoolean.cpp @@ -38,7 +38,7 @@ namespace xo { DBoolean * DBoolean::shallow_move(obj gc) noexcept { - return gc.std_copy_for(this); + return gc.std_move_for(this); } size_t diff --git a/src/object2/DDictionary.cpp b/src/object2/DDictionary.cpp index 2f25f1b..48b0c97 100644 --- a/src/object2/DDictionary.cpp +++ b/src/object2/DDictionary.cpp @@ -276,7 +276,7 @@ namespace xo { DDictionary * DDictionary::shallow_move(obj gc) noexcept { - return gc.std_copy_for(this); + return gc.std_move_for(this); } std::size_t diff --git a/src/object2/DFloat.cpp b/src/object2/DFloat.cpp index 4a9041c..c00286c 100644 --- a/src/object2/DFloat.cpp +++ b/src/object2/DFloat.cpp @@ -36,7 +36,7 @@ namespace xo { DFloat * DFloat::shallow_move(obj gc) noexcept { - return gc.std_copy_for(this); + return gc.std_move_for(this); } size_t diff --git a/src/object2/DInteger.cpp b/src/object2/DInteger.cpp index 600f48e..53625fd 100644 --- a/src/object2/DInteger.cpp +++ b/src/object2/DInteger.cpp @@ -36,7 +36,7 @@ namespace xo { DInteger * DInteger::shallow_move(obj gc) noexcept { - return gc.std_copy_for(this); + return gc.std_move_for(this); } size_t diff --git a/src/object2/DList.cpp b/src/object2/DList.cpp index f17a53f..d9e5317 100644 --- a/src/object2/DList.cpp +++ b/src/object2/DList.cpp @@ -187,7 +187,7 @@ namespace xo { DList * DList::shallow_move(obj gc) noexcept { - return gc.std_copy_for(this); + return gc.std_move_for(this); } auto diff --git a/src/object2/DRuntimeError.cpp b/src/object2/DRuntimeError.cpp index a52e1df..469479c 100644 --- a/src/object2/DRuntimeError.cpp +++ b/src/object2/DRuntimeError.cpp @@ -61,7 +61,7 @@ namespace xo { DRuntimeError * DRuntimeError::shallow_move(obj gc) noexcept { - return gc.std_copy_for(this); + return gc.std_move_for(this); } std::size_t