From 30d560f4cfa72188e2e2c7f7063435bd963d1561 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 5 Apr 2007 21:56:21 +0000 Subject: [PATCH] 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 --- include/wx/string.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 \ -- 2.50.0