return NULL -> return CString() for clarity and efficiency
This commit is contained in:
@@ -197,7 +197,7 @@ static const CString MONTH_TO_NAME[MONTHS_IN_YEAR] =
|
||||
CString MonthToString( int iMonthIndex )
|
||||
{
|
||||
if( iMonthIndex < 0 || iMonthIndex >= (int) sizeof(MONTH_TO_NAME) )
|
||||
return NULL;
|
||||
return CString();
|
||||
return MONTH_TO_NAME[iMonthIndex];
|
||||
}
|
||||
LuaFunction( MonthToString, MonthToString( IArg(1) ) );
|
||||
|
||||
Reference in New Issue
Block a user