Use const accessors for signal dispatch
This commit is contained in:
parent
ec5e9f6c87
commit
10c6a22df1
@ -73,7 +73,7 @@ namespace util {
|
||||
|
||||
/// Execute all callbacks, ignoring the return parameters. Does not combine results.
|
||||
void operator () (Args... tail) {
|
||||
for (auto i = m_children.begin (), end = m_children.end (); i != end; ++i)
|
||||
for (auto i = m_children.cbegin (); i != m_children.cend (); ++i)
|
||||
(*i)(tail...);
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user