X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/eea2be6ca3e1da988c805dfa42a0061c769c2a20..ea5af9c5356676a5c4d81b4d4915ad32ca3c9c6e:/include/wx/arrstr.h diff --git a/include/wx/arrstr.h b/include/wx/arrstr.h index 4c099c36b2..95b9506fdc 100644 --- a/include/wx/arrstr.h +++ b/include/wx/arrstr.h @@ -301,6 +301,13 @@ public: void reserve(size_type n) /* base::reserve*/; void resize(size_type n, value_type v = value_type()); size_type size() const { return GetCount(); } + void swap(wxArrayString& other) + { + wxSwap(m_nSize, other.m_nSize); + wxSwap(m_nCount, other.m_nCount); + wxSwap(m_pItems, other.m_pItems); + wxSwap(m_autoSort, other.m_autoSort); + } protected: void Init(bool autoSort); // common part of all ctors