diff options
author | Josh Blum <josh@joshknows.com> | 2010-04-05 18:11:32 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-04-05 18:11:32 -0700 |
commit | ed5cb33eb402c5d34c330d1b9dcb99658c628a72 (patch) | |
tree | bb0a96351c4ce770b5f468558c1b8ff056f05e8e /host/lib/types.cpp | |
parent | 57f1f769e5e5bb07a5385955eee9390d0e1de908 (diff) | |
download | uhd-ed5cb33eb402c5d34c330d1b9dcb99658c628a72.tar.gz uhd-ed5cb33eb402c5d34c330d1b9dcb99658c628a72.tar.bz2 uhd-ed5cb33eb402c5d34c330d1b9dcb99658c628a72.zip |
renamed dict get key and value methods
Diffstat (limited to 'host/lib/types.cpp')
-rw-r--r-- | host/lib/types.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/types.cpp b/host/lib/types.cpp index d87238161..61a63b710 100644 --- a/host/lib/types.cpp +++ b/host/lib/types.cpp @@ -122,7 +122,7 @@ time_spec_t::time_spec_t(boost::posix_time::ptime time, double tick_rate){ std::string device_addr_t::to_string(void) const{ const device_addr_t &device_addr = *this; std::stringstream ss; - BOOST_FOREACH(std::string key, device_addr.get_keys()){ + BOOST_FOREACH(std::string key, device_addr.keys()){ ss << boost::format("%s: %s") % key % device_addr[key] << std::endl; } return ss.str(); @@ -138,7 +138,7 @@ static std::string trim(const std::string &in){ std::string device_addr_t::to_args_str(void) const{ std::string args_str; const device_addr_t &device_addr = *this; - BOOST_FOREACH(const std::string &key, device_addr.get_keys()){ + BOOST_FOREACH(const std::string &key, device_addr.keys()){ args_str += key + pair_delim + device_addr[key] + arg_delim; } return args_str; |