return NULL -> return CString() for clarity and efficiency

This commit is contained in:
Chris Danford
2005-09-04 16:55:21 +00:00
parent c414d1bcf8
commit 48ebc53549
55 changed files with 107 additions and 107 deletions
+2 -2
View File
@@ -228,7 +228,7 @@ CString ScreenProfileOptions::GetSelectedProfileID()
const OptionRow &row = *m_pRows[GetCurrentRow()];
const int Selection = row.GetOneSharedSelection();
if( !Selection )
return NULL;
return CString();
return vsProfiles[ Selection-1 ];
}
@@ -237,7 +237,7 @@ CString ScreenProfileOptions::GetSelectedProfileName()
const OptionRow &row = *m_pRows[GetCurrentRow()];
const int Selection = row.GetOneSharedSelection();
if( !Selection )
return NULL;
return CString();
return g_ProfileOptionsLines[PO_PLAYER1].m_vsChoices[ Selection ];
}