Fix swapping core collections

This commit is contained in:
Mateusz Karbowiak
2023-12-08 20:50:52 +01:00
parent 86fbf05b09
commit f3497a2a55
2 changed files with 2 additions and 6 deletions

View File

@@ -734,9 +734,7 @@ public:
}
else
{
Array tmp = MoveTemp(other);
other = *this;
*this = MoveTemp(tmp);
::Swap(other, *this);
}
}

View File

@@ -616,9 +616,7 @@ public:
}
else
{
Dictionary tmp = MoveTemp(other);
other = *this;
*this = MoveTemp(tmp);
::Swap(other, *this);
}
}