Reviewers: Neil Puttock,
http://codereview.appspot.com/174080/diff/1003/1004 File lily/tie-performer.cc (right): http://codereview.appspot.com/174080/diff/1003/1004#newcode46 lily/tie-performer.cc:46: // We don't really need a list or deque here. A vector would suffice. However, On 2009/12/13 20:04:09, Neil Puttock wrote:
Since the error was caused by a naming conflict for the struct, you
can use a
vector now, though it's less convenient for removing the tied heads.
Exactly, and for that reason, I now prefer a list. In fact, the new check removed arbitrary elements from the list, which is less efficient for vectors. Also, splice is not available for vectors, but vector joining has to be done manually... http://codereview.appspot.com/174080/diff/1003/1004#newcode133 lily/tie-performer.cc:133: class end_moment_passed On 2009/12/13 20:04:09, Neil Puttock wrote:
{ protected:
Sigh, About everthing possible is indented with the style, just these keywords are not :( Not very consistent. Okay, will change. Description: Fix the memory corruption issues I had by renaming the data structure (shadowing was causing the corruption!). Also fix the Issue found by Hu Haipeng that a note ending in one voice would terminate all ongoing ties in all other notes, since so far the code never checked whether the starting note of the tie was still going on. Also, use the correct moment comparison (remove if the end moment is lower **or equal** to the moment that has just been processed). Please review this at http://codereview.appspot.com/174080 Affected files: M lily/tie-performer.cc _______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-devel