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
@@ -1240,7 +1240,7 @@ vector<BackgroundChange> &Song::GetForegroundChanges()
CString GetSongAssetPath( CString sPath, const CString &sSongPath )
{
if( sPath == "" )
return NULL;
return CString();
/* If there's no path in the file, the file is in the same directory
* as the song. (This is the preferred configuration.) */
@@ -1259,7 +1259,7 @@ CString GetSongAssetPath( CString sPath, const CString &sSongPath )
/* If the path still begins with "../", then there were an unreasonable number
* of them at the beginning of the path. Ignore the path entirely. */
if( sPath.Left(3) == "../" )
return NULL;
return CString();
return sPath;
}