fix (mostly bogus) warnings

This commit is contained in:
Glenn Maynard
2005-02-20 04:49:36 +00:00
parent f913346852
commit e9a6b578e3
+4 -6
View File
@@ -122,17 +122,15 @@ void NotesWriterSM::WriteGlobalTags( RageFile &f, const Song &out )
static CString JoinLineList( vector<CString> &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 )