mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-20 19:39:41 +00:00
Don't check for equality in move assignment
Assume it is undefined behavior to move-assing value to itself.
This commit is contained in:
parent
0d5876f4bb
commit
aab7f2e8b9
1 changed files with 0 additions and 3 deletions
|
@ -69,9 +69,6 @@ namespace DetourNavigator
|
|||
|
||||
Value& operator =(Value&& other)
|
||||
{
|
||||
if (mIterator == other.mIterator)
|
||||
return *this;
|
||||
|
||||
if (mIterator != ItemIterator())
|
||||
mOwner->releaseItem(mIterator);
|
||||
|
||||
|
|
Loading…
Reference in a new issue