Don't return NULL.
This commit is contained in:
@@ -572,7 +572,7 @@ RString ProfileManager::GetProfileDirImportedFrom( ProfileSlot slot ) const
|
|||||||
case ProfileSlot_Player2:
|
case ProfileSlot_Player2:
|
||||||
return m_sProfileDirImportedFrom[slot];
|
return m_sProfileDirImportedFrom[slot];
|
||||||
case ProfileSlot_Machine:
|
case ProfileSlot_Machine:
|
||||||
return NULL;
|
return RString();
|
||||||
default:
|
default:
|
||||||
ASSERT(0);
|
ASSERT(0);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -416,7 +416,7 @@ RString ScreenOptionsManageProfiles::GetLocalProfileIDWithFocus() const
|
|||||||
{
|
{
|
||||||
int iIndex = GetLocalProfileIndexWithFocus();
|
int iIndex = GetLocalProfileIndexWithFocus();
|
||||||
if( iIndex == -1 )
|
if( iIndex == -1 )
|
||||||
return NULL;
|
return RString();
|
||||||
return m_vsLocalProfileID[iIndex];
|
return m_vsLocalProfileID[iIndex];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user