diff --git a/src/core/hle/kernel/object.h b/src/core/hle/kernel/object.h index 90cf120a27..fbacf93593 100644 --- a/src/core/hle/kernel/object.h +++ b/src/core/hle/kernel/object.h @@ -6,7 +6,6 @@ #include #include -#include #include @@ -99,7 +98,7 @@ using SharedPtr = boost::intrusive_ptr; template inline SharedPtr DynamicObjectCast(SharedPtr object) { if (object != nullptr && object->GetHandleType() == T::HANDLE_TYPE) { - return boost::static_pointer_cast(std::move(object)); + return boost::static_pointer_cast(object); } return nullptr; } diff --git a/src/core/hle/kernel/wait_object.h b/src/core/hle/kernel/wait_object.h index 5af04c6a86..2b9a9393b6 100644 --- a/src/core/hle/kernel/wait_object.h +++ b/src/core/hle/kernel/wait_object.h @@ -59,7 +59,7 @@ private: template <> inline SharedPtr DynamicObjectCast(SharedPtr object) { if (object != nullptr && object->IsWaitable()) { - return boost::static_pointer_cast(std::move(object)); + return boost::static_pointer_cast(object); } return nullptr; }