summaryrefslogtreecommitdiffstats
path: root/lib/usrp/usrp.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-02-12 18:43:21 -0800
committerJosh Blum <josh@joshknows.com>2010-02-12 18:43:21 -0800
commit259f5babf1e1bc1595ad54c6588c1ff5117dc2e3 (patch)
treecd4e82dfd650b69d9d36d7c95f34bd76ede4972b /lib/usrp/usrp.cpp
parent9fff25f4e5da179ea29ff44278e0415a337870cb (diff)
downloaduhd-259f5babf1e1bc1595ad54c6588c1ff5117dc2e3.tar.gz
uhd-259f5babf1e1bc1595ad54c6588c1ff5117dc2e3.tar.bz2
uhd-259f5babf1e1bc1595ad54c6588c1ff5117dc2e3.zip
Made use of templated dict to replace used of map
and to get rid of utility call.
Diffstat (limited to 'lib/usrp/usrp.cpp')
-rw-r--r--lib/usrp/usrp.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/usrp/usrp.cpp b/lib/usrp/usrp.cpp
index 68b423538..86a40ebd8 100644
--- a/lib/usrp/usrp.cpp
+++ b/lib/usrp/usrp.cpp
@@ -18,7 +18,6 @@
#include <uhd/usrp/usrp.hpp>
#include <uhd/usrp/mboard/usrp2.hpp>
#include <uhd/usrp/mboard/test.hpp>
-#include <uhd/utils.hpp>
#include <boost/format.hpp>
#include <boost/bind.hpp>
#include <stdexcept>
@@ -72,7 +71,7 @@ void usrp::get(const wax::obj &key_, wax::obj &val){
return;
case DEVICE_PROP_MBOARD:
- if (_mboards.count(name) == 0) throw std::invalid_argument(
+ if (not _mboards.has_key(name)) throw std::invalid_argument(
str(boost::format("Unknown mboard name %s") % name)
);
//turn the mboard sptr object into a wax::obj::sptr
@@ -81,7 +80,7 @@ void usrp::get(const wax::obj &key_, wax::obj &val){
return;
case DEVICE_PROP_MBOARD_NAMES:
- val = prop_names_t(get_map_keys(_mboards));
+ val = prop_names_t(_mboards.get_keys());
return;
}
}