Explicitly initialize parent in the copy constructor
authorRobin Gareus <robin@gareus.org>
Mon, 7 Aug 2017 11:57:49 +0000 (13:57 +0200)
committerRobin Gareus <robin@gareus.org>
Mon, 7 Aug 2017 11:57:49 +0000 (13:57 +0200)
libs/ardour/automatable.cc
libs/ardour/presentation_info.cc

index 3dad4ccd314b62febedb87425e18274f10b19672..57c8205717ced5f8baf970b99d1b1e8c467c82a2 100644 (file)
@@ -57,6 +57,7 @@ Automatable::Automatable(Session& session)
 
 Automatable::Automatable (const Automatable& other)
         : ControlSet (other)
+        , Slavable ()
         , _a_session (other._a_session)
 {
         Glib::Threads::Mutex::Lock lm (other._control_lock);
index d070f83220b14a1a74b5ff63e65ad045721f003d..23d82f6409ed6c5731284baf3be8ef76bbd055ca 100644 (file)
@@ -145,7 +145,8 @@ PresentationInfo::PresentationInfo (order_t o, Flag f)
        /* OrderSet is set */
 }
 PresentationInfo::PresentationInfo (PresentationInfo const& other)
-       : _order (other.order())
+       : PBD::Stateful ()
+       , _order (other.order())
        , _flags (other.flags())
        , _color (other.color())
 {