mirror of
https://github.com/openharmony/utils_native.git
synced 2026-07-21 01:25:42 -04:00
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user