From 4994bc4fb1c0d835f04e08939ea095e972e19cef Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 7 Aug 2017 13:57:49 +0200 Subject: [PATCH] Explicitly initialize parent in the copy constructor --- libs/ardour/automatable.cc | 1 + libs/ardour/presentation_info.cc | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/ardour/automatable.cc b/libs/ardour/automatable.cc index 3dad4ccd31..57c8205717 100644 --- a/libs/ardour/automatable.cc +++ b/libs/ardour/automatable.cc @@ -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); diff --git a/libs/ardour/presentation_info.cc b/libs/ardour/presentation_info.cc index d070f83220..23d82f6409 100644 --- a/libs/ardour/presentation_info.cc +++ b/libs/ardour/presentation_info.cc @@ -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()) { -- 2.30.2