diff --git a/base/src/refbase.cpp b/base/src/refbase.cpp index 63b4cb865b1e9e104ca6b3cdd8cfc806bba2debd..ab936534ea41bedeba5ce44c9b615d7ac4330510 100755 --- a/base/src/refbase.cpp +++ b/base/src/refbase.cpp @@ -276,9 +276,7 @@ RefBase &RefBase::operator=(const RefBase &/*other*/) RefBase::RefBase(RefBase &&other) noexcept { refs_ = other.refs_; - if (other.refs_ != nullptr) { - other.refs_ = nullptr; - } + other.refs_ = nullptr; } RefBase &RefBase::operator=(RefBase &&other) noexcept @@ -293,9 +291,7 @@ RefBase &RefBase::operator=(RefBase &&other) noexcept } refs_ = other.refs_; - if (other.refs_ != nullptr) { - other.refs_ = nullptr; - } + other.refs_ = nullptr; return *this; }