Skip to content
  • Lioncash's avatar
    kernel/object: Remove unnecessary std::move from DynamicObjectCast() · f4c24d08
    Lioncash authored
    boost::static_pointer_cast for boost::intrusive_ptr (what SharedPtr is),
    takes its parameter by const reference. Given that, it means that this
    std::move doesn't actually do anything other than obscure what the
    function's actual behavior is, so we can remove this. To clarify, this
    would only do something if the parameter was either taking its argument
    by value, by non-const ref, or by rvalue-reference.
    f4c24d08
Loading