aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/subdev_spec.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-01-26 11:34:27 -0800
committerJosh Blum <josh@joshknows.com>2011-01-26 11:34:27 -0800
commit2003cda6289c0b9f9d60cfb6d5fdc981f3f4fc9d (patch)
tree17637bc9418d607babdd98c555d2e130f457052a /host/lib/usrp/subdev_spec.cpp
parent789cca28e8f920be56840b29e6e8cf0db1ba61aa (diff)
parentdb1fd30da6def1269eae62b5ccd3c81c28ae000f (diff)
downloaduhd-2003cda6289c0b9f9d60cfb6d5fdc981f3f4fc9d.tar.gz
uhd-2003cda6289c0b9f9d60cfb6d5fdc981f3f4fc9d.tar.bz2
uhd-2003cda6289c0b9f9d60cfb6d5fdc981f3f4fc9d.zip
Merge branch 'macos'
Diffstat (limited to 'host/lib/usrp/subdev_spec.cpp')
-rw-r--r--host/lib/usrp/subdev_spec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/subdev_spec.cpp b/host/lib/usrp/subdev_spec.cpp
index 51c88bda3..d5d950f1f 100644
--- a/host/lib/usrp/subdev_spec.cpp
+++ b/host/lib/usrp/subdev_spec.cpp
@@ -46,7 +46,7 @@ bool usrp::operator==(const subdev_spec_pair_t &lhs, const subdev_spec_pair_t &r
subdev_spec_t::subdev_spec_t(const std::string &markup){
BOOST_FOREACH(const std::string &pair, pair_tokenizer(markup)){
- if (pair == "") continue;
+ if (pair.empty()) continue;
std::vector<std::string> db_sd; boost::split(db_sd, pair, boost::is_any_of(":"));
switch(db_sd.size()){
case 1: this->push_back(subdev_spec_pair_t("", db_sd.front())); break;