Cleaner loops ahoy!
This commit is contained in:
@@ -431,8 +431,8 @@ void ThemeManager::ReloadSubscribers()
|
|||||||
// reload subscribers
|
// reload subscribers
|
||||||
if( g_Subscribers.m_pSubscribers )
|
if( g_Subscribers.m_pSubscribers )
|
||||||
{
|
{
|
||||||
FOREACHS_CONST( IThemeMetric*, *g_Subscribers.m_pSubscribers, p )
|
for (IThemeMetric *metric : *g_Subscribers.m_pSubscribers)
|
||||||
(*p)->Read();
|
metric->Read();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -440,8 +440,8 @@ void ThemeManager::ClearSubscribers()
|
|||||||
{
|
{
|
||||||
if( g_Subscribers.m_pSubscribers )
|
if( g_Subscribers.m_pSubscribers )
|
||||||
{
|
{
|
||||||
FOREACHS_CONST( IThemeMetric*, *g_Subscribers.m_pSubscribers, p )
|
for (IThemeMetric *metric : *g_Subscribers.m_pSubscribers)
|
||||||
(*p)->Clear();
|
metric->Clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user