From f4a3640b0d7b2e9dc59cc55739a2040b0c69b747 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 10 Dec 2003 09:27:41 +0000 Subject: [PATCH] optimize --- stepmania/src/RageFile.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stepmania/src/RageFile.cpp b/stepmania/src/RageFile.cpp index 73f5736b5c..1567c807c7 100644 --- a/stepmania/src/RageFile.cpp +++ b/stepmania/src/RageFile.cpp @@ -19,8 +19,9 @@ void FixSlashesInPlace( CString &sPath ) { - sPath.Replace( "/", SLASH ); - sPath.Replace( "\\", SLASH ); + for( unsigned i = 0; i < sPath.size(); ++i ) + if( sPath[i] == '\\' ) + sPath[i] = '/'; } CString FixSlashes( CString sPath )