diff options
author | Determinant <tederminant@gmail.com> | 2019-10-14 13:36:58 -0400 |
---|---|---|
committer | Determinant <tederminant@gmail.com> | 2019-10-14 13:36:58 -0400 |
commit | 2a99baafdcac46931b00a9ef9e77340dbc319b58 (patch) | |
tree | 99bd05cd8985ee61e93332c626d40cb9ea5f1fb1 /include/salticidae/ref.h | |
parent | b6cc8b6615266fa1023b63d08e96971629d854c6 (diff) |
remove unnecessary std::move()v0.1.0
Diffstat (limited to 'include/salticidae/ref.h')
-rw-r--r-- | include/salticidae/ref.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/salticidae/ref.h b/include/salticidae/ref.h index bb8efc0..bb5fb3a 100644 --- a/include/salticidae/ref.h +++ b/include/salticidae/ref.h @@ -151,7 +151,7 @@ template<typename T, typename D = default_delete<T>, typename T_, typename D_> BoxObj<T, D> static_pointer_cast(BoxObj<T_, D_> &&other) { BoxObj<T, D> box{}; box.obj = static_cast<typename BoxObj<T, D>::type *>(other.obj); - return std::move(box); + return box; } struct _RCCtl { @@ -447,7 +447,7 @@ RcObjBase<T, R_, D> static_pointer_cast(const RcObjBase<T_, R_, D_> &other) { rc.obj = static_cast<typename RcObjBase<T, R_, D>::type *>(other.obj); if ((rc.ctl = other.ctl)) rc.ctl->add_ref(); - return std::move(rc); + return rc; } template<typename T, typename D = default_delete<T>, @@ -457,7 +457,7 @@ RcObjBase<T, R_, D> static_pointer_cast(RcObjBase<T_, R_, D_> &&other) { rc.obj = static_cast<typename RcObjBase<T, R_, D>::type *>(other.obj); rc.ctl = other.ctl; other.ctl = nullptr; - return std::move(rc); + return rc; } template<typename T, typename R> |