[libsigcplusplus/libsigc++-2-10] C++11: signal: Use a range-based for loop.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsigcplusplus/libsigc++-2-10] C++11: signal: Use a range-based for loop.
- Date: Fri, 8 Apr 2016 08:57:00 +0000 (UTC)
commit 6e279a310d6b497378a3c9585ad98394f8a46840
Author: Murray Cumming <murrayc murrayc com>
Date: Sat Apr 2 09:04:28 2016 +0200
C++11: signal: Use a range-based for loop.
sigc++/macros/signal.h.m4 | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/sigc++/macros/signal.h.m4 b/sigc++/macros/signal.h.m4
index 73109e3..42a832d 100644
--- a/sigc++/macros/signal.h.m4
+++ b/sigc++/macros/signal.h.m4
@@ -234,11 +234,11 @@ FOR(1, $1,[
signal_exec exec(impl);
temp_slot_list slots(impl->slots_);
- for (auto it = slots.begin(); it != slots.end(); ++it)
+ for (const auto& slot : slots)
{
- if (it->empty() || it->blocked())
+ if (slot.empty() || slot.blocked())
continue;
- (reinterpret_cast<call_type>(it->rep_->call_))(LIST(it->rep_, LOOP(_A_a%1, $1)));
+ (reinterpret_cast<call_type>(slot.rep_->call_))(LIST(slot.rep_, LOOP(_A_a%1, $1)));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]