From 2a99baafdcac46931b00a9ef9e77340dbc319b58 Mon Sep 17 00:00:00 2001 From: Determinant Date: Mon, 14 Oct 2019 13:36:58 -0400 Subject: remove unnecessary std::move() --- include/salticidae/ref.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/salticidae/ref.h') 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_> BoxObj static_pointer_cast(BoxObj &&other) { BoxObj box{}; box.obj = static_cast::type *>(other.obj); - return std::move(box); + return box; } struct _RCCtl { @@ -447,7 +447,7 @@ RcObjBase static_pointer_cast(const RcObjBase &other) { rc.obj = static_cast::type *>(other.obj); if ((rc.ctl = other.ctl)) rc.ctl->add_ref(); - return std::move(rc); + return rc; } template, @@ -457,7 +457,7 @@ RcObjBase static_pointer_cast(RcObjBase &&other) { rc.obj = static_cast::type *>(other.obj); rc.ctl = other.ctl; other.ctl = nullptr; - return std::move(rc); + return rc; } template -- cgit v1.2.3