Remove unnecessary 0 checks before delete; see http://www.parashift.com/c++-faq-lite...
[ardour.git] / libs / ardour / gain.cc
index 369df7348c43aec94a2bdd5e58b3ec08c1f793dd..dd385e513cc5c10fa290bbebbaf3f18bf19253a5 100644 (file)
 using namespace ARDOUR;
 
 Gain::Gain ()
-       : Curve (0.0, 2.0, 1.0f)   /* XXX yuck; clamps gain to -inf .. +6db */
+       : AutomationList (Evoral::Parameter(GainAutomation))   /* XXX yuck; clamps gain to -inf .. +6db */
 {
 }
 
 Gain::Gain (const Gain& other)
-       : Curve (other)
+       : AutomationList (other)
 {
 }
 
@@ -35,7 +35,7 @@ Gain&
 Gain::operator= (const Gain& other)
 {
        if (this != &other) {
-               Curve::operator= (other);
+               AutomationList::operator= (other);
        }
        return *this;
 }