From e9a6b578e3d6d242baf09bf7bd2faa547e75ce2c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 20 Feb 2005 04:49:36 +0000 Subject: [PATCH] fix (mostly bogus) warnings --- stepmania/src/NotesWriterSM.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/stepmania/src/NotesWriterSM.cpp b/stepmania/src/NotesWriterSM.cpp index a58f9e2c53..d9fc9cc7fe 100644 --- a/stepmania/src/NotesWriterSM.cpp +++ b/stepmania/src/NotesWriterSM.cpp @@ -122,17 +122,15 @@ void NotesWriterSM::WriteGlobalTags( RageFile &f, const Song &out ) static CString JoinLineList( vector &lines ) { - bool bSkipLeadingBlankLines = true; - for( unsigned i = 0; i < lines.size(); ++i ) TrimRight( lines[i] ); /* Skip leading blanks. */ - unsigned i = 0; - while( i < lines.size() && lines.size() == 0 ) - ++i; + unsigned j = 0; + while( j < lines.size() && lines.size() == 0 ) + ++j; - return join( "\n", lines.begin()+i, lines.end() ); + return join( "\n", lines.begin()+j, lines.end() ); } CString NotesWriterSM::GetSMNotesTag( const Song &song, const Steps &in, bool bSavingCache )