From 29424c2c706de45d431d89d6901984c3cfc51f8d Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Tue, 15 Jun 2021 10:57:44 +0200 Subject: Avoid copy in loop in EtiReader --- src/EtiReader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EtiReader.cpp b/src/EtiReader.cpp index 51266af..d1c7622 100644 --- a/src/EtiReader.cpp +++ b/src/EtiReader.cpp @@ -334,7 +334,7 @@ const std::vector > EdiReader::getSubchannels( std::vector > sources; sources.resize(m_sources.size()); - for (const auto s : m_sources) { + for (const auto& s : m_sources) { if (s.first < sources.size()) { sources.at(s.first) = s.second; } -- cgit v1.2.3