diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-04-27 13:15:39 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-05-04 00:04:19 -0700 |
commit | bed6cb45b76f8af660d6e45442a39e5075a25a22 (patch) | |
tree | dfdc0b1467d4a5cc427826a6e42ff02e73301ec5 /host | |
parent | c3beb6d1ec2f11ab4d8153b43396d07127cd4f20 (diff) | |
download | uhd-bed6cb45b76f8af660d6e45442a39e5075a25a22.tar.gz uhd-bed6cb45b76f8af660d6e45442a39e5075a25a22.tar.bz2 uhd-bed6cb45b76f8af660d6e45442a39e5075a25a22.zip |
x300: Fixed TODO (used auto)
Diffstat (limited to 'host')
-rw-r--r-- | host/lib/usrp/x300/x300_radio_ctrl_impl.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp b/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp index 655385fd7..e98980e5c 100644 --- a/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp +++ b/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp @@ -470,9 +470,7 @@ freq_range_t x300_radio_ctrl_impl::get_rx_lo_freq_range(const std::string &name, template <typename map_type> static size_t _get_chan_from_map(std::map<size_t, map_type> map, const std::string &fe) { - // TODO replace with 'auto' when possible - typedef typename std::map<size_t, map_type>::iterator chan_iterator; - for (chan_iterator it = map.begin(); it != map.end(); ++it) { + for (auto it = map.begin(); it != map.end(); ++it) { if (it->second.db_fe_name == fe) { return it->first; } |