Use const accessors for signal dispatch

This commit is contained in:
Danny Robson 2011-08-10 21:30:55 +10:00
parent ec5e9f6c87
commit 10c6a22df1

View File

@ -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...);
}
};