add PrefsManager::GetPreferenceByName
This commit is contained in:
@@ -47,6 +47,16 @@ void PrefsManager::Unsubscribe( IPreference *p )
|
||||
g_pvpSubscribers->erase( iter );
|
||||
}
|
||||
|
||||
IPreference *PrefsManager::GetPreferenceByName( const CString &sName )
|
||||
{
|
||||
FOREACH( IPreference*, *g_pvpSubscribers, p )
|
||||
{
|
||||
if( !(*p)->GetName().CompareNoCase( sName ) )
|
||||
return *p;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
bool g_bAutoRestart = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user