Skip to content

Commit 6e279a3

Browse files
committed
C++11: signal: Use a range-based for loop.
1 parent 05b5a81 commit 6e279a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sigc++/macros/signal.h.m4

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,11 @@ FOR(1, $1,[
234234
signal_exec exec(impl);
235235
temp_slot_list slots(impl->slots_);
236236
237-
for (auto it = slots.begin(); it != slots.end(); ++it)
237+
for (const auto& slot : slots)
238238
{
239-
if (it->empty() || it->blocked())
239+
if (slot.empty() || slot.blocked())
240240
continue;
241-
(reinterpret_cast<call_type>(it->rep_->call_))(LIST(it->rep_, LOOP(_A_a%1, $1)));
241+
(reinterpret_cast<call_type>(slot.rep_->call_))(LIST(slot.rep_, LOOP(_A_a%1, $1)));
242242
}
243243
}
244244

0 commit comments

Comments
 (0)