diff options
author | Josh Blum <josh@joshknows.com> | 2010-08-15 10:55:18 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-08-15 10:55:18 -0700 |
commit | 45c952399b92d5dc618c469cf48c9980ee6f0e80 (patch) | |
tree | 077870c0975c97cabd5d8c76e19965aeade2cdc6 /host/lib/utils/props.cpp | |
parent | 9cb9e7d52255d3e14e57867eee76b555f705954c (diff) | |
parent | 98ba0cc067489d417342314a7e7408d2dbbc8250 (diff) | |
download | uhd-45c952399b92d5dc618c469cf48c9980ee6f0e80.tar.gz uhd-45c952399b92d5dc618c469cf48c9980ee6f0e80.tar.bz2 uhd-45c952399b92d5dc618c469cf48c9980ee6f0e80.zip |
Merge branch 'next' into usrp1
Diffstat (limited to 'host/lib/utils/props.cpp')
-rw-r--r-- | host/lib/utils/props.cpp | 9 |
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); } |