Skip to content

Commit

Permalink
minor improvement
Browse files Browse the repository at this point in the history
This was a legacy of another implementation of DeleteAllRegistrations, and we don't need to remove the screen from the deleted screen list as we go
  • Loading branch information
jyavenard committed Jul 9, 2013
1 parent 952ef9b commit e06a765
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mythtv/libs/libmythui/mythuinotificationcenter.cpp
Expand Up @@ -768,13 +768,12 @@ void NCPrivate::DeleteAllRegistrations(void)
{ {
QMap<int, MythUINotificationScreen*>::iterator it = m_registrations.begin(); QMap<int, MythUINotificationScreen*>::iterator it = m_registrations.begin();


for (; it != m_registrations.end();) for (; it != m_registrations.end(); ++it)
{ {
if (*it) if (*it)
{ {
m_deletedScreens.append(*it); m_deletedScreens.append(*it);
} }
it = m_registrations.erase(it);
} }
m_registrations.clear(); m_registrations.clear();
} }
Expand Down

0 comments on commit e06a765

Please sign in to comment.