summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2021-06-15 10:57:44 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2021-06-15 10:57:44 +0200
commit29424c2c706de45d431d89d6901984c3cfc51f8d (patch)
treed775a1618bfb6ff5ce82fd856b2dc72ea98b02ce /src
parenta6e0b800dc0c3db0e71ed4be3102959e2ef12d8f (diff)
downloaddabmod-29424c2c706de45d431d89d6901984c3cfc51f8d.tar.gz
dabmod-29424c2c706de45d431d89d6901984c3cfc51f8d.tar.bz2
dabmod-29424c2c706de45d431d89d6901984c3cfc51f8d.zip
Avoid copy in loop in EtiReader
Diffstat (limited to 'src')
-rw-r--r--src/EtiReader.cpp2
1 files changed, 1 insertions, 1 deletions
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<std::shared_ptr<SubchannelSource> > EdiReader::getSubchannels(
std::vector<std::shared_ptr<SubchannelSource> > 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;
}