summaryrefslogtreecommitdiffstats
path: root/host/lib/utils/props.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-08-17 17:16:54 +0000
committerJosh Blum <josh@joshknows.com>2010-08-17 17:16:54 +0000
commit1aa1404ebb59594a8c81b31f9b56ad35bd832a26 (patch)
tree5de014f592095c659e0e90f2264925210817df6c /host/lib/utils/props.cpp
parent1b47702245f0c1f4dda3e0eff487bbe664d48855 (diff)
parent7d110e73e6b0651f73e8e5b165244f59e66fed87 (diff)
downloaduhd-1aa1404ebb59594a8c81b31f9b56ad35bd832a26.tar.gz
uhd-1aa1404ebb59594a8c81b31f9b56ad35bd832a26.tar.bz2
uhd-1aa1404ebb59594a8c81b31f9b56ad35bd832a26.zip
Merge branch 'next' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e_merge
Diffstat (limited to 'host/lib/utils/props.cpp')
-rw-r--r--host/lib/utils/props.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/host/lib/utils/props.cpp b/host/lib/utils/props.cpp
index fac5fe24f..fc9f8e63f 100644
--- a/host/lib/utils/props.cpp
+++ b/host/lib/utils/props.cpp
@@ -29,15 +29,12 @@ named_prop_t::named_prop_t(
/* NOP */
}
-typedef boost::tuple<wax::obj, std::string> named_prop_tuple;
-
-named_prop_tuple uhd::extract_named_prop(
+named_prop_t named_prop_t::extract(
const wax::obj &key,
const std::string &name
){
if (key.type() == typeid(named_prop_t)){
- named_prop_t np = key.as<named_prop_t>();
- return named_prop_tuple(np.key, np.name);
+ return key.as<named_prop_t>();
}
- return named_prop_tuple(key, name);
+ return named_prop_t(key, name);
}