From 2d76872a6c2d55df18c44ed39fc3a6cbfa3d2ea3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 8 Mar 2019 20:02:15 +0100 Subject: Make Tee preserve interface order and act as a facade for the first --- ingen/Tee.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ingen/Tee.hpp b/ingen/Tee.hpp index cee8c59e..153a3d4b 100644 --- a/ingen/Tee.hpp +++ b/ingen/Tee.hpp @@ -23,8 +23,8 @@ #include #include -#include #include +#include namespace ingen { @@ -32,16 +32,16 @@ namespace ingen { class Tee : public Interface { public: - typedef std::set< SPtr > Sinks; + typedef std::vector> Sinks; explicit Tee(Sinks sinks) : _sinks(std::move(sinks)) {} SPtr respondee() const override { - return (*_sinks.begin())->respondee(); + return _sinks.front()->respondee(); } void set_respondee(SPtr respondee) override { - (*_sinks.begin())->set_respondee(respondee); + _sinks.front()->set_respondee(respondee); } void message(const Message& message) override { -- cgit v1.2.1