Also add wxObjArray::swap() for consistency with the other arrays

As with the previous commit, make this kind of arrays a bit more
comfortable to use as long as we can't avoid using them completely.
This commit is contained in:
Vadim Zeitlin 2024-01-21 00:01:54 +01:00
parent a5f02170c4
commit 6d0b1369aa
2 changed files with 11 additions and 0 deletions

View file

@ -436,6 +436,8 @@ public:
void Sort(CMPFUNC fCmp) { base::Sort(fCmp); }
void swap(wxBaseObjectArray& other) { base::swap(other); }
// Provide a way to iterate over the stored objects using range-based for.
class ObjectIterator
{