diff options
author | Murray Cumming <murrayc@murrayc.com> | 2016-04-21 19:38:39 +0200 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2016-04-21 19:38:39 +0200 |
commit | 764c17e28600eb57bb7271116f9d5f98858959b5 (patch) | |
tree | acfd8dc68a3aa6eec5587d57601e90d1cc005700 | |
parent | d8c2dff2fd0c45252bbbd3a85463f45b504977d2 (diff) | |
download | sigc++-764c17e28600eb57bb7271116f9d5f98858959b5.tar.gz |
Use temp_slot_list as const.
-rw-r--r-- | sigc++/signal.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sigc++/signal.h b/sigc++/signal.h index a0a45bf..9f2af2a 100644 --- a/sigc++/signal.h +++ b/sigc++/signal.h @@ -265,7 +265,7 @@ struct signal_emit return accumulator(slot_iterator_buf_type(), slot_iterator_buf_type()); signal_exec exec(impl); - temp_slot_list slots(impl->slots_); + const temp_slot_list slots(impl->slots_); self_type self(a...); return accumulator( @@ -317,7 +317,7 @@ public: // Use this scope to make sure that "slots" is destroyed before "exec" is destroyed. // This avoids a leak on MSVC++ - see http://bugzilla.gnome.org/show_bug.cgi?id=306249 { - temp_slot_list slots(impl->slots_); + const temp_slot_list slots(impl->slots_); auto it = slots.begin(); for (; it != slots.end(); ++it) { @@ -368,7 +368,7 @@ public: if (!impl || impl->slots_.empty()) return; signal_exec exec(impl); - temp_slot_list slots(impl->slots_); + const temp_slot_list slots(impl->slots_); for (const auto& slot : slots) { |