Clean up new code.

This commit is contained in:
Robin Sommer 2019-06-07 23:38:25 +00:00
parent 7bd738865c
commit 6adab8d46a
5 changed files with 94 additions and 63 deletions

View file

@ -404,7 +404,7 @@ void Trigger::UnregisterAll()
{
DBG_LOG(DBG_NOTIFIERS, "%s: unregistering all", Name());
for ( auto o : objs )
for ( const auto& o : objs )
{
notifier::registry.Unregister(o.second, this);
Unref(o.first);