optimize
This commit is contained in:
@@ -19,8 +19,9 @@
|
|||||||
|
|
||||||
void FixSlashesInPlace( CString &sPath )
|
void FixSlashesInPlace( CString &sPath )
|
||||||
{
|
{
|
||||||
sPath.Replace( "/", SLASH );
|
for( unsigned i = 0; i < sPath.size(); ++i )
|
||||||
sPath.Replace( "\\", SLASH );
|
if( sPath[i] == '\\' )
|
||||||
|
sPath[i] = '/';
|
||||||
}
|
}
|
||||||
|
|
||||||
CString FixSlashes( CString sPath )
|
CString FixSlashes( CString sPath )
|
||||||
|
|||||||
Reference in New Issue
Block a user