From: g0dil Date: Tue, 18 Aug 2009 22:11:36 +0000 (+0000) Subject: PPI: Add missing return in MultiConnectorMixin connect X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=c608344663f72bb564e5b3b9f8c01bb73ee37a3a;p=senf.git PPI: Add missing return in MultiConnectorMixin connect git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1301 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/PPI/MultiConnectorMixin.mpp b/PPI/MultiConnectorMixin.mpp index 121bf8c..aeb5dfd 100644 --- a/PPI/MultiConnectorMixin.mpp +++ b/PPI/MultiConnectorMixin.mpp @@ -156,7 +156,9 @@ typename boost::enable_if< typename Source::ConnectorType & >::type senf::ppi::connect(Source & source, Target & target mpp_FnParamsKomma()) { - connect(source.newConnector(mpp_CallParams()), target); + typename Source::ConnectorType & c (source.newConnector(mpp_CallParams())); + connect(c, target); + return c; } template @@ -165,7 +167,9 @@ typename boost::enable_if< typename Target::ConnectorType & >::type senf::ppi::connect(Source & source, Target & target mpp_FnParamsKomma()) { - connect(source, target.newConnector(mpp_CallParams())); + typename Target::ConnectorType & c (target.newConnector(mpp_CallParams())); + connect(source, c); + return c; } // ////////////////////////////////////////////////////////////////////////