use IPreference::GetPreferenceByName

This commit is contained in:
Glenn Maynard
2005-12-31 01:59:52 +00:00
parent f4570700fa
commit 2255a72086
+2 -2
View File
@@ -95,7 +95,7 @@ static void MoveMap( int &sel, IPreference &opt, bool ToSel, const T *mapping, u
template <class T>
static void MoveMap( int &sel, const ConfOption *pConfOption, bool ToSel, const T *mapping, unsigned cnt )
{
IPreference *pPref = PREFSMAN->GetPreferenceByName( pConfOption->name );
IPreference *pPref = IPreference::GetPreferenceByName( pConfOption->name );
ASSERT_M( pPref != NULL, pConfOption->name );
MoveMap( sel, *pPref, ToSel, mapping, cnt );
@@ -104,7 +104,7 @@ static void MoveMap( int &sel, const ConfOption *pConfOption, bool ToSel, const
/* "iSel" is the selection in the menu. */
static void MovePref( int &iSel, bool bToSel, const ConfOption *pConfOption )
{
IPreference *pPref = PREFSMAN->GetPreferenceByName( pConfOption->name );
IPreference *pPref = IPreference::GetPreferenceByName( pConfOption->name );
ASSERT_M( pPref != NULL, pConfOption->name );
if( bToSel )