summaryrefslogtreecommitdiff
path: root/libs/pbd/pbd/signals.py
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-04-27 04:57:28 +0200
committerRobin Gareus <robin@gareus.org>2015-04-27 17:19:57 +0200
commit9687c756a6010d24f88f8faaa77466bae8922b9a (patch)
tree920b83c35df3f88541134f4373d1ed95bd5889f5 /libs/pbd/pbd/signals.py
parent36ee1681fe87d3f1d39fa52727e1dee5e2dd1322 (diff)
const iterators
Diffstat (limited to 'libs/pbd/pbd/signals.py')
-rw-r--r--libs/pbd/pbd/signals.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/pbd/pbd/signals.py b/libs/pbd/pbd/signals.py
index caf3128bfa..9495b70f89 100644
--- a/libs/pbd/pbd/signals.py
+++ b/libs/pbd/pbd/signals.py
@@ -112,7 +112,7 @@ def signal(f, n, v):
print("\t\tGlib::Threads::Mutex::Lock lm (_mutex);", file=f)
print("\t\t/* Tell our connection objects that we are going away, so they don't try to call us */", file=f)
- print("\t\tfor (%sSlots::iterator i = _slots.begin(); i != _slots.end(); ++i) {" % typename, file=f)
+ print("\t\tfor (%sSlots::const_iterator i = _slots.begin(); i != _slots.end(); ++i) {" % typename, file=f)
print("\t\t\ti->first->signal_going_away ();", file=f)
print("\t\t}", file=f)
@@ -240,7 +240,7 @@ def signal(f, n, v):
print("", file=f)
if not v:
print("\t\tstd::list<R> r;", file=f)
- print("\t\tfor (%sSlots::iterator i = s.begin(); i != s.end(); ++i) {" % typename, file=f)
+ print("\t\tfor (%sSlots::const_iterator i = s.begin(); i != s.end(); ++i) {" % typename, file=f)
print("""
/* We may have just called a slot, and this may have resulted in
disconnection of other slots from us. The list copy means that