mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 03:40:14 +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
@ -69,9 +69,6 @@ namespace DetourNavigator
|
||||
|
||||
Value& operator =(Value&& other)
|
||||
{
|
||||
if (mIterator == other.mIterator)
|
||||
return *this;
|
||||
|
||||
if (mIterator != ItemIterator())
|
||||
mOwner->releaseItem(mIterator);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user