diff options
author | Josh Blum <josh@joshknows.com> | 2010-02-12 18:43:21 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-02-12 18:43:21 -0800 |
commit | 259f5babf1e1bc1595ad54c6588c1ff5117dc2e3 (patch) | |
tree | cd4e82dfd650b69d9d36d7c95f34bd76ede4972b /test/gain_handler_test.cpp | |
parent | 9fff25f4e5da179ea29ff44278e0415a337870cb (diff) | |
download | uhd-259f5babf1e1bc1595ad54c6588c1ff5117dc2e3.tar.gz uhd-259f5babf1e1bc1595ad54c6588c1ff5117dc2e3.tar.bz2 uhd-259f5babf1e1bc1595ad54c6588c1ff5117dc2e3.zip |
Made use of templated dict to replace used of map
and to get rid of utility call.
Diffstat (limited to 'test/gain_handler_test.cpp')
-rw-r--r-- | test/gain_handler_test.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/gain_handler_test.cpp b/test/gain_handler_test.cpp index 30e88c445..c81221aac 100644 --- a/test/gain_handler_test.cpp +++ b/test/gain_handler_test.cpp @@ -17,7 +17,7 @@ #include <boost/test/unit_test.hpp> #include <uhd/gain_handler.hpp> -#include <uhd/utils.hpp> +#include <uhd/dict.hpp> #include <iostream> using namespace uhd; @@ -74,7 +74,7 @@ private: return; case PROP_GAIN_NAMES: - val = prop_names_t(get_map_keys(_gains)); + val = prop_names_t(_gains.get_keys()); return; } } @@ -100,10 +100,10 @@ private: } gain_handler::sptr _gain_handler; - std::map<std::string, gain_t> _gains; - std::map<std::string, gain_t> _gains_min; - std::map<std::string, gain_t> _gains_max; - std::map<std::string, gain_t> _gains_step; + uhd::dict<std::string, gain_t> _gains; + uhd::dict<std::string, gain_t> _gains_min; + uhd::dict<std::string, gain_t> _gains_max; + uhd::dict<std::string, gain_t> _gains_step; }; |