We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5be8ec3 commit aebd7abCopy full SHA for aebd7ab
src/NCollection/NCollection_Map.hxx
@@ -185,6 +185,8 @@ public:
185
void Exchange (NCollection_Map& theOther)
186
{
187
this->exchangeMapsData (theOther);
188
+ std::swap(myLast, theOther.myLast);
189
+ std::swap(myFirst, theOther.myFirst);
190
}
191
192
//! Assign.
@@ -217,7 +219,7 @@ public:
217
219
218
220
if (this == &theOther)
221
return *this;
- exchangeMapsData(theOther);
222
+ Exchange(theOther);
223
224
225
0 commit comments