From 32c209a322f5ed03332f40806207a873132b934d Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Tue, 19 Sep 2006 04:44:59 +0000 Subject: [PATCH] Cleanup. --- stepmania/src/RageUtil_CharConversions.cpp | 12 ++++++------ stepmania/src/RageUtil_CharConversions.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/stepmania/src/RageUtil_CharConversions.cpp b/stepmania/src/RageUtil_CharConversions.cpp index efd299c4ca..409e574018 100644 --- a/stepmania/src/RageUtil_CharConversions.cpp +++ b/stepmania/src/RageUtil_CharConversions.cpp @@ -128,10 +128,10 @@ static bool AttemptJapaneseConversion( RString &sText ) { return false; } #endif -bool ConvertString(RString &str, const RString &encodings) +bool ConvertString( RString &str, const RString &encodings ) { vector lst; - split(encodings, ",", lst); + split( encodings, ",", lst ); for(unsigned i = 0; i < lst.size(); ++i) { @@ -144,27 +144,27 @@ bool ConvertString(RString &str, const RString &encodings) } if( lst[i] == "english" ) { - if(AttemptEnglishConversion(str)) + if( AttemptEnglishConversion(str) ) return true; continue; } if( lst[i] == "japanese" ) { - if(AttemptJapaneseConversion(str)) + if( AttemptJapaneseConversion(str) ) return true; continue; } if( lst[i] == "korean" ) { - if(AttemptKoreanConversion(str)) + if( AttemptKoreanConversion(str) ) return true; continue; } RageException::Throw( "Unexpected conversion string \"%s\" (string \"%s\").", - lst[i].c_str(), str.c_str() ); + lst[i].c_str(), str.c_str() ); } return false; diff --git a/stepmania/src/RageUtil_CharConversions.h b/stepmania/src/RageUtil_CharConversions.h index 57c34c0a34..101607839e 100644 --- a/stepmania/src/RageUtil_CharConversions.h +++ b/stepmania/src/RageUtil_CharConversions.h @@ -7,6 +7,6 @@ * separated list of encodings. The only valid strings are "japanese" and "korean". * Return true if the conversion was successful (or a no-op). Return false and * leave the string unchanged if the conversion was unsuccessful. */ -bool ConvertString(RString &str, const RString &encodings); +bool ConvertString( RString &str, const RString &encodings ); #endif