return NULL -> return CString() for clarity and efficiency
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user