Skip to content

Commit

Permalink
fixup - whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
zonkmachine committed Oct 14, 2017
1 parent d6492f1 commit 7922673
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion include/Note.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class EXPORT Note : public SerializingObject
{
return true;
}
else if( (int) ( *lhs ).pos() > (int)( *rhs ).pos() )
else if( (int)( *lhs ).pos() > (int)( *rhs ).pos() )
{
return false;
}
Expand Down
19 changes: 9 additions & 10 deletions src/tracks/Pattern.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,22 +229,21 @@ Note * Pattern::addNote( const Note & _new_note, const bool _quant_pos )
long new_note_abs_time = new_note->pos();
int key = new_note->key();
NoteVector::Iterator it = m_notes.begin();

while( it != m_notes.end() &&
( *it )->pos() < new_note_abs_time )
( *it )->pos() < new_note_abs_time )
{
++it;
++it;
}

while( it != m_notes.end() &&
( *it )->pos() == new_note_abs_time &&
( *it )->key() < key )
( *it )->pos() == new_note_abs_time &&
( *it )->key() < key )
{
++it;
++it;
}

m_notes.insert( it, new_note );
}

}
instrumentTrack()->unlock();

checkType();
Expand Down Expand Up @@ -308,8 +307,8 @@ void Pattern::rearrangeAllNotes()
NoteVector::Iterator test = m_notes.begin();
while( test != m_notes.end() )
{
qDebug() << "Pos: " << ( *test )->pos() << "Key: " << ( *test )->key();
++test;
qDebug() << "Pos: " << ( *test )->pos() << "Key: " << ( *test )->key();
++test;
}

}
Expand Down

0 comments on commit 7922673

Please sign in to comment.