summaryrefslogtreecommitdiffstats
path: root/src/MuxElements.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2021-06-15 10:47:58 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2021-06-15 10:47:58 +0200
commit7d9b2ee5ae8db92f4e28296983d706593197239a (patch)
tree8df332c0769bd2bbf2f6cee536781e09aa68c63f /src/MuxElements.cpp
parent56074a31dc8a8b2b4ef3e8b5592db27decd2acf5 (diff)
downloaddabmux-7d9b2ee5ae8db92f4e28296983d706593197239a.tar.gz
dabmux-7d9b2ee5ae8db92f4e28296983d706593197239a.tar.bz2
dabmux-7d9b2ee5ae8db92f4e28296983d706593197239a.zip
Avoid a few copies in loops
Diffstat (limited to 'src/MuxElements.cpp')
-rw-r--r--src/MuxElements.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MuxElements.cpp b/src/MuxElements.cpp
index 1d95cc0..71ff270 100644
--- a/src/MuxElements.cpp
+++ b/src/MuxElements.cpp
@@ -422,7 +422,7 @@ vec_sp_service::iterator getService(
vec_sp_service& services)
{
size_t i = 0;
- for (const auto service : services) {
+ for (const auto& service : services) {
if (service->id == component->serviceId) {
return services.begin() + i;
}