aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/image_loader.cpp
diff options
context:
space:
mode:
authorAndrej Rode <andrej.rode@ettus.com>2017-02-09 23:19:55 -0800
committerMartin Braun <martin.braun@ettus.com>2017-02-10 16:44:33 -0800
commit26cc20847cde543e759aa5cee9a27eaa69c5dd9e (patch)
treeeee102333381e2313af59e725d6b7a06b665161f /host/lib/image_loader.cpp
parentf3a004faf7d50cbb5564f5e2f67f54ee07e051dd (diff)
downloaduhd-26cc20847cde543e759aa5cee9a27eaa69c5dd9e.tar.gz
uhd-26cc20847cde543e759aa5cee9a27eaa69c5dd9e.tar.bz2
uhd-26cc20847cde543e759aa5cee9a27eaa69c5dd9e.zip
uhd: replace BOOST_FOREACH with C++11 range-based for loop
Note: This is the first commit that uses for-range, and range-based for-loops are now usable for UHD development.
Diffstat (limited to 'host/lib/image_loader.cpp')
-rw-r--r--host/lib/image_loader.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/host/lib/image_loader.cpp b/host/lib/image_loader.cpp
index 91dd325dd..5ad257368 100644
--- a/host/lib/image_loader.cpp
+++ b/host/lib/image_loader.cpp
@@ -20,7 +20,6 @@
#include <utility>
#include <boost/filesystem.hpp>
-#include <boost/foreach.hpp>
#include <boost/format.hpp>
#include <uhd/exception.hpp>
@@ -69,7 +68,7 @@ bool uhd::image_loader::load(const uhd::image_loader::image_loader_args_t &image
else return get_image_loaders().at(type)(image_loader_args);
}
else{
- BOOST_FOREACH(const loader_fcn_pair_t &loader_fcn_pair, get_image_loaders()){
+ for(const loader_fcn_pair_t &loader_fcn_pair: get_image_loaders()){
if(loader_fcn_pair.second(image_loader_args)) return true;
}
return false;