From 764c17e28600eb57bb7271116f9d5f98858959b5 Mon Sep 17 00:00:00 2001 From: Murray Cumming Date: Thu, 21 Apr 2016 19:38:39 +0200 Subject: Use temp_slot_list as const. --- sigc++/signal.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sigc++') 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) { -- cgit v1.2.1