diff options
Diffstat (limited to 'host/examples')
-rw-r--r-- | host/examples/test_dboard_coercion.cpp | 3 | ||||
-rw-r--r-- | host/examples/twinrx_freq_hopping.cpp | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/host/examples/test_dboard_coercion.cpp b/host/examples/test_dboard_coercion.cpp index 8ea2446fa..0fb6f1872 100644 --- a/host/examples/test_dboard_coercion.cpp +++ b/host/examples/test_dboard_coercion.cpp @@ -22,7 +22,6 @@ static const double SAMP_RATE = 1e6; namespace po = boost::program_options; -typedef std::pair<double, double> double_pair; // BOOST_FOREACH doesn't like commas typedef std::vector<std::pair<double, double>> pair_vector; /************************************************************************ @@ -340,7 +339,7 @@ std::string coercion_test(uhd::usrp::multi_usrp::sptr usrp, } else { results += "USRP did not successfully set gain under the following circumstances:"; - for (double_pair bad_pair : bad_gain_vals) { + for (auto& bad_pair : bad_gain_vals) { double bad_freq = bad_pair.first; double bad_gain = bad_pair.second; results += str(boost::format("\nFrequency: %s, Gain: %5.2f") diff --git a/host/examples/twinrx_freq_hopping.cpp b/host/examples/twinrx_freq_hopping.cpp index d32a3e660..0dca1ee83 100644 --- a/host/examples/twinrx_freq_hopping.cpp +++ b/host/examples/twinrx_freq_hopping.cpp @@ -91,7 +91,7 @@ static void write_fft_to_file(const std::string& fft_path) { std::cout << "Calculating FFTs (this may take a while)... " << std::flush; std::ofstream ofile(fft_path.c_str(), std::ios::binary); - BOOST_FOREACH (const recv_buff_t& buff, buffs) { + for (const recv_buff_t& buff : buffs) { std::vector<float> fft = ascii_art_dft::log_pwr_dft(&buff.front(), buff.size()); ofile.write((char*)&fft[0], (sizeof(float) * fft.size())); } |