@@ -606,9 +606,9 @@ void SerialContainerPrivate::resolveInterface(InterfaceFlags expected) {
606606 validateInterface<START_IF_MASK>(*first.pimpl (), expected);
607607 // connect first child's (start) pull interface
608608 if (const InterfacePtr& target = first.pimpl ()->starts ())
609- starts_. reset ( new Interface ([this , target](Interface::iterator it, bool updated) {
609+ starts_ = std::make_shared< Interface> ([this , target](Interface::iterator it, bool updated) {
610610 this ->copyState <Interface::FORWARD>(it, target, updated);
611- })) ;
611+ });
612612 } catch (InitStageException& e) {
613613 exceptions.append (e);
614614 }
@@ -632,9 +632,9 @@ void SerialContainerPrivate::resolveInterface(InterfaceFlags expected) {
632632 validateInterface<END_IF_MASK>(*last.pimpl (), expected);
633633 // connect last child's (end) pull interface
634634 if (const InterfacePtr& target = last.pimpl ()->ends ())
635- ends_. reset ( new Interface ([this , target](Interface::iterator it, bool updated) {
635+ ends_ = std::make_shared< Interface> ([this , target](Interface::iterator it, bool updated) {
636636 this ->copyState <Interface::BACKWARD>(it, target, updated);
637- })) ;
637+ });
638638 } catch (InitStageException& e) {
639639 exceptions.append (e);
640640 }
@@ -733,13 +733,13 @@ void ParallelContainerBasePrivate::resolveInterface(InterfaceFlags expected) {
733733void ParallelContainerBasePrivate::initializeExternalInterfaces () {
734734 // States received by the container need to be copied to all children's pull interfaces.
735735 if (requiredInterface () & READS_START)
736- starts (). reset ( new Interface ([this ](Interface::iterator external, bool updated) {
736+ starts () = std::make_shared< Interface> ([this ](Interface::iterator external, bool updated) {
737737 this ->propagateStateToChildren <Interface::FORWARD>(external, updated);
738- })) ;
738+ });
739739 if (requiredInterface () & READS_END)
740- ends (). reset ( new Interface ([this ](Interface::iterator external, bool updated) {
740+ ends () = std::make_shared< Interface> ([this ](Interface::iterator external, bool updated) {
741741 this ->propagateStateToChildren <Interface::BACKWARD>(external, updated);
742- })) ;
742+ });
743743}
744744
745745void ParallelContainerBasePrivate::validateInterfaces (const StagePrivate& child, InterfaceFlags& external,
0 commit comments