From 3bbd50f0e70fe37643055739ac239432d807a809 Mon Sep 17 00:00:00 2001 From: Marcus Winter Date: Thu, 27 Oct 2016 11:57:45 +0200 Subject: [PATCH] dataflow_cpp: removed unnecessary value copy --- dataflow_cpp/include/embb/dataflow/internal/signal.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dataflow_cpp/include/embb/dataflow/internal/signal.h b/dataflow_cpp/include/embb/dataflow/internal/signal.h index 4931681..2985b5e 100644 --- a/dataflow_cpp/include/embb/dataflow/internal/signal.h +++ b/dataflow_cpp/include/embb/dataflow/internal/signal.h @@ -37,7 +37,8 @@ template class Signal { public: Signal() : blank_(true), value_(), clock_(-1) {} - Signal(int clock, Type value) : blank_(false), value_(value), clock_(clock) {} + Signal(int clock, Type const & value) + : blank_(false), value_(value), clock_(clock) {} explicit Signal(int clock) : blank_(true), value_(), clock_(clock) {} Signal(Signal const & other) : blank_(other.blank_), value_(other.value_), clock_(other.clock_) {} -- libgit2 0.26.0