1
0
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:
elsid 2018-12-10 23:44:47 +03:00
parent 0d5876f4bb
commit aab7f2e8b9
No known key found for this signature in database
GPG Key ID: B845CB9FEE18AB40

View File

@ -69,9 +69,6 @@ namespace DetourNavigator
Value& operator =(Value&& other)
{
if (mIterator == other.mIterator)
return *this;
if (mIterator != ItemIterator())
mOwner->releaseItem(mIterator);