Fix evoral test suite.
authorDavid Robillard <d@drobilla.net>
Wed, 3 Dec 2014 04:30:16 +0000 (23:30 -0500)
committerDavid Robillard <d@drobilla.net>
Wed, 3 Dec 2014 04:30:16 +0000 (23:30 -0500)
libs/evoral/test/SequenceTest.cpp
libs/evoral/test/SequenceTest.hpp

index b1d166f0b9ff0f8572a07dbcb710f9d16b950e08..f6a8363f4d3c882cd054883b24378e91a03b6152 100644 (file)
@@ -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);
index a21e8c34086c173efa92979081961d3a7448b3e0..d8e04061002b3aba204e5f1cdd60ef407244de87 100644 (file)
@@ -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));
        }
 };