Lesson: Don't code when tired.

Make a complete function call of the notify loop body, instead of some half syntax.

Originally committed to SVN as r4417.
This commit is contained in:
Niels Martin Hansen 2010-06-03 18:08:23 +00:00
parent 1768a8138d
commit 709718ffb6

View file

@ -24,7 +24,7 @@ namespace agi {
void OptionValue::NotifyChanged() { void OptionValue::NotifyChanged() {
for (ChangeListenerSet::const_iterator nfcb = listeners.begin(); nfcb != listeners.end(); ++nfcb) { for (ChangeListenerSet::const_iterator nfcb = listeners.begin(); nfcb != listeners.end(); ++nfcb) {
nfcb->first->*(nfcb->second); (nfcb->first->*(nfcb->second))(*this);
} }
} }