Skip to content

Commit

Permalink
Avoid copy in loop in EtiReader
Browse files Browse the repository at this point in the history
  • Loading branch information
mpbraendli committed Jun 15, 2021
1 parent a6e0b80 commit 29424c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EtiReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 29424c2

Please sign in to comment.