diff options
author | Murray Cumming <murrayc@murrayc.com> | 2005-07-09 19:04:33 +0000 |
---|---|---|
committer | Murray Cumming <murrayc@src.gnome.org> | 2005-07-09 19:04:33 +0000 |
commit | b1f922ae90cd7ec4ebffffbd2f40554b1151e7e6 (patch) | |
tree | 249d90b25608465f58651972f4cf957358996f11 | |
parent | 0f89e250a75f85d9ae4ad92e2b75f023a1974109 (diff) | |
download | sigc++-b1f922ae90cd7ec4ebffffbd2f40554b1151e7e6.tar.gz |
Did the same (see last commit) for slot_const_iterator and
2005-07-09 Murray Cumming <murrayc@murrayc.com>
* sigc++/macros/signal.h.m4: Did the same (see
last commit) for slot_const_iterator and
slot_iterator_buf.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | sigc++/macros/signal.h.m4 | 12 |
2 files changed, 12 insertions, 6 deletions
@@ -1,5 +1,11 @@ 2005-07-09 Murray Cumming <murrayc@murrayc.com> + * sigc++/macros/signal.h.m4: Did the same (see + last commit) for slot_const_iterator and + slot_iterator_buf. + +2005-07-09 Murray Cumming <murrayc@murrayc.com> + * sigc++/macros/signal.h.m4: slot_iterator: operator--() now returns value, not reference, like operator++() already did. This caused crashes when diff --git a/sigc++/macros/signal.h.m4 b/sigc++/macros/signal.h.m4 index 29ff1b9..3700c36 100644 --- a/sigc++/macros/signal.h.m4 +++ b/sigc++/macros/signal.h.m4 @@ -598,13 +598,13 @@ struct slot_const_iterator return __tmp; } - slot_const_iterator& operator--() + slot_const_iterator operator--() { --i_; return *this; } - slot_const_iterator& operator--(int) + slot_const_iterator operator--(int) { slot_const_iterator __tmp(*this); --i_; @@ -779,14 +779,14 @@ struct slot_iterator_buf return __tmp; } - slot_iterator_buf& operator--() + slot_iterator_buf operator--() { --i_; invoked_ = false; return *this; } - slot_iterator_buf& operator--(int) + slot_iterator_buf operator--(int) { slot_iterator_buf __tmp(*this); --i_; @@ -855,14 +855,14 @@ struct slot_iterator_buf<T_emitter, void> return __tmp; } - slot_iterator_buf& operator--() + slot_iterator_buf operator--() { --i_; invoked_ = false; return *this; } - slot_iterator_buf& operator--(int) + slot_iterator_buf operator--(int) { slot_iterator_buf __tmp(*this); --i_; |