diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2021-06-15 10:57:44 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2021-06-15 10:57:44 +0200 |
commit | 29424c2c706de45d431d89d6901984c3cfc51f8d (patch) | |
tree | d775a1618bfb6ff5ce82fd856b2dc72ea98b02ce /src/EtiReader.cpp | |
parent | a6e0b800dc0c3db0e71ed4be3102959e2ef12d8f (diff) | |
download | dabmod-29424c2c706de45d431d89d6901984c3cfc51f8d.tar.gz dabmod-29424c2c706de45d431d89d6901984c3cfc51f8d.tar.bz2 dabmod-29424c2c706de45d431d89d6901984c3cfc51f8d.zip |
Avoid copy in loop in EtiReader
Diffstat (limited to 'src/EtiReader.cpp')
-rw-r--r-- | src/EtiReader.cpp | 2 |
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; } |