diff options
author | Josh Blum <josh@joshknows.com> | 2010-08-17 17:25:03 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-08-17 17:25:03 -0700 |
commit | 864de41af536de1a4e86aa4542e2cfeb21f2d309 (patch) | |
tree | 259f582fca4b73ea5db4811bf2423294b02477a3 /host/lib/utils/props.cpp | |
parent | 0541029e4ecd06e840966b4005af316b92eeb9e5 (diff) | |
parent | 7d110e73e6b0651f73e8e5b165244f59e66fed87 (diff) | |
download | uhd-864de41af536de1a4e86aa4542e2cfeb21f2d309.tar.gz uhd-864de41af536de1a4e86aa4542e2cfeb21f2d309.tar.bz2 uhd-864de41af536de1a4e86aa4542e2cfeb21f2d309.zip |
Merge branch 'next'
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); } |