diff --git a/src/EtiReader.cpp b/src/EtiReader.cpp index 51266af3..d1c7622a 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; }