X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/903506828b7d042350eae97b5014a63ffca17ef5..c9baf9d7381850790040b26b11cc9456877ddc4e:/src/common/string.cpp diff --git a/src/common/string.cpp b/src/common/string.cpp index 6bc1683a23..d0297f3c97 100644 --- a/src/common/string.cpp +++ b/src/common/string.cpp @@ -1904,7 +1904,7 @@ wxString& wxString::replace(size_t nStart, size_t nLen, #define STRING(p) ((wxString *)(&(p))) // ctor -wxArrayString::wxArrayString(bool autoSort) +void wxArrayString::Init(bool autoSort) { m_nSize = m_nCount = 0; @@ -1915,10 +1915,7 @@ wxArrayString::wxArrayString(bool autoSort) // copy ctor wxArrayString::wxArrayString(const wxArrayString& src) { - m_nSize = - m_nCount = 0; - m_pItems = (wxChar **) NULL; - m_autoSort = src.m_autoSort; + Init(src.m_autoSort); *this = src; }