Fix build of evoral tests

Fix compile errors in libs/evoral/test/, by explicitly calling
Evoral::MusicalTime::to_double() wherever a double value is required of a
MusicalTime.

Some of the double variables should probably really be made into MusicalTime
ones instead, but I don't want to mess with this too much.

takeFiveTest still fails for me after this, but a failing test is probably
more informative in the long run than a test that won't even compile.
This commit is contained in:
Colin Fletcher 2014-11-24 15:10:50 +00:00
parent 1f58f81aa6
commit 3a6c9e3bb9
2 changed files with 12 additions and 12 deletions

View file

@ -30,8 +30,8 @@ SequenceTest::preserveEventOrderingTest ()
);
event->buffer()[0] = MIDI_CMD_CONTROL;
event->buffer()[1] = event->time() / 1000;
event->buffer()[2] = event->time() / 1000;
event->buffer()[1] = event->time().to_double() / 1000;
event->buffer()[2] = event->time().to_double() / 1000;
boost::shared_ptr<Event<Time> > event_ptr(event);