diff options
author | David Robillard <d@drobilla.net> | 2014-12-02 23:30:16 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-12-02 23:30:16 -0500 |
commit | 7a3c54f031bc0ead921d02db99065db1c101a5a8 (patch) | |
tree | 414d4068689b3fae1f7cdff1f0e42e3397f7dd2b | |
parent | 25efe5953c8903614d574cac3e8c8e8f3d444770 (diff) |
Fix evoral test suite.
-rw-r--r-- | libs/evoral/test/SequenceTest.cpp | 1 | ||||
-rw-r--r-- | libs/evoral/test/SequenceTest.hpp | 12 |
2 files changed, 7 insertions, 6 deletions
diff --git a/libs/evoral/test/SequenceTest.cpp b/libs/evoral/test/SequenceTest.cpp index b1d166f0b9..f6a8363f4d 100644 --- a/libs/evoral/test/SequenceTest.cpp +++ b/libs/evoral/test/SequenceTest.cpp @@ -107,7 +107,6 @@ SequenceTest::controlInterpolationTest () double min = 0.0; double max = 127.0; - double normal = 0.0; // Make a ramp like /\ from min to max and back to min c->set_double(min, 0, true); diff --git a/libs/evoral/test/SequenceTest.hpp b/libs/evoral/test/SequenceTest.hpp index a21e8c3408..d8e0406100 100644 --- a/libs/evoral/test/SequenceTest.hpp +++ b/libs/evoral/test/SequenceTest.hpp @@ -39,6 +39,10 @@ public: }; } + ParameterDescriptor descriptor(const Parameter& param) const { + return ParameterDescriptor(); + } + std::string to_symbol(const Parameter& /*param*/) const { return "control"; } }; @@ -48,11 +52,9 @@ public: MySequence(DummyTypeMap&map) : Sequence<Time>(map) {} boost::shared_ptr<Control> control_factory(const Parameter& param) { - - return boost::shared_ptr<Control>( - new Control(param, boost::shared_ptr<ControlList> ( - new ControlList(param) - ))); + const Evoral::ParameterDescriptor desc; + boost::shared_ptr<ControlList> list(new ControlList(param, desc)); + return boost::shared_ptr<Control>(new Control(param, desc, list)); } }; |