From bed6cb45b76f8af660d6e45442a39e5075a25a22 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 27 Apr 2017 13:15:39 -0700 Subject: x300: Fixed TODO (used auto) --- host/lib/usrp/x300/x300_radio_ctrl_impl.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'host/lib/usrp') 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 static size_t _get_chan_from_map(std::map map, const std::string &fe) { - // TODO replace with 'auto' when possible - typedef typename std::map::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; } -- cgit v1.2.3