aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/image_loader.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2021-01-08 13:23:17 +0100
committerAaron Rossetto <aaron.rossetto@ni.com>2021-03-04 08:24:09 -0600
commit47623aabb4832d3d217faa1a9938bb7a6e4341c3 (patch)
treeb67dec95e65ca8aacd4352413506c8869480e450 /host/lib/image_loader.cpp
parent49e5ef81530684998bc4bc0934590cdaa81190ab (diff)
downloaduhd-47623aabb4832d3d217faa1a9938bb7a6e4341c3.tar.gz
uhd-47623aabb4832d3d217faa1a9938bb7a6e4341c3.tar.bz2
uhd-47623aabb4832d3d217faa1a9938bb7a6e4341c3.zip
lib: Use const-ref in for loops instead of const-copy
This is potentially a performance issue, even though it doesn't have a big impact in this context. Clang will warn about it, and this fixes the compiler warning.
Diffstat (limited to 'host/lib/image_loader.cpp')
-rw-r--r--host/lib/image_loader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/image_loader.cpp b/host/lib/image_loader.cpp
index 38fed1c87..bb1fb3558 100644
--- a/host/lib/image_loader.cpp
+++ b/host/lib/image_loader.cpp
@@ -59,7 +59,7 @@ bool uhd::image_loader::load(
} else
return get_image_loaders().at(type)(image_loader_args);
} else {
- for (const loader_fcn_pair_t& loader_fcn_pair : get_image_loaders()) {
+ for (const auto& loader_fcn_pair : get_image_loaders()) {
if (loader_fcn_pair.second(image_loader_args))
return true;
}