From: Vadim Zeitlin Date: Thu, 5 Apr 2007 21:56:21 +0000 (+0000) Subject: wxString::[const_]iterator operators -= and += should return reference and not iterat... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/30d560f4cfa72188e2e2c7f7063435bd963d1561?ds=inline wxString::[const_]iterator operators -= and += should return reference and not iterator object git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45266 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/string.h b/include/wx/string.h index dd56e13c7a..eeabb58b25 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -622,13 +622,13 @@ public: { return iterator_name(wxString::AddToIter(m_cur, -n)); } \ iterator_name operator-(size_t n) const \ { return iterator_name(wxString::AddToIter(m_cur, -(int)n)); } \ - iterator_name operator+=(int n) \ + iterator_name& operator+=(int n) \ { m_cur = wxString::AddToIter(m_cur, n); return *this; } \ - iterator_name operator+=(size_t n) \ + iterator_name& operator+=(size_t n) \ { m_cur = wxString::AddToIter(m_cur, (int)n); return *this; } \ - iterator_name operator-=(int n) \ + iterator_name& operator-=(int n) \ { m_cur = wxString::AddToIter(m_cur, -n); return *this; } \ - iterator_name operator-=(size_t n) \ + iterator_name& operator-=(size_t n) \ { m_cur = wxString::AddToIter(m_cur, -(int)n); return *this; } \ \ unsigned operator-(const iterator_name& i) const \