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
This commit is contained in:
@@ -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 \
|
||||
|
Reference in New Issue
Block a user