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
@@ -33,7 +33,7 @@ RageFileBasic *RageFile::Copy() const
CString RageFile::GetPath() const
{
if ( !IsOpen() )
return NULL;
return CString();
CString sRet = m_File->GetDisplayPath();
if( sRet != "" )
@@ -218,7 +218,7 @@ void FileReading::ReadBytes( RageFileBasic &f, void *buf, int size, CString &sEr
CString FileReading::ReadString( RageFileBasic &f, int size, CString &sError )
{
if( sError.size() != 0 )
return NULL;
return CString();
CString sBuf;
int ret = f.Read( sBuf, size );