Skip to content

Commit 764c17e

Browse files
committed
Use temp_slot_list as const.
1 parent d8c2dff commit 764c17e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sigc++/signal.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ struct signal_emit
265265
return accumulator(slot_iterator_buf_type(), slot_iterator_buf_type());
266266

267267
signal_exec exec(impl);
268-
temp_slot_list slots(impl->slots_);
268+
const temp_slot_list slots(impl->slots_);
269269

270270
self_type self(a...);
271271
return accumulator(
@@ -317,7 +317,7 @@ struct signal_emit<T_return, void, T_arg...>
317317
// Use this scope to make sure that "slots" is destroyed before "exec" is destroyed.
318318
// This avoids a leak on MSVC++ - see http://bugzilla.gnome.org/show_bug.cgi?id=306249
319319
{
320-
temp_slot_list slots(impl->slots_);
320+
const temp_slot_list slots(impl->slots_);
321321
auto it = slots.begin();
322322
for (; it != slots.end(); ++it)
323323
{
@@ -368,7 +368,7 @@ struct signal_emit<void, void, T_arg...>
368368
if (!impl || impl->slots_.empty())
369369
return;
370370
signal_exec exec(impl);
371-
temp_slot_list slots(impl->slots_);
371+
const temp_slot_list slots(impl->slots_);
372372

373373
for (const auto& slot : slots)
374374
{

0 commit comments

Comments
 (0)