diff options
author | Thomas Habets <thomas@habets.se> | 2020-03-22 14:55:14 +0000 |
---|---|---|
committer | Martin Braun <martin@gnuradio.org> | 2020-03-27 08:45:52 -0700 |
commit | 5a9f864c9befdee426da6ddaec6e96c63e571bc3 (patch) | |
tree | e1529ddef962be3843eefb94d8619b79a79c8aca /gr-channels/lib/selective_fading_model2_impl.h | |
parent | 414a495d639ffb817dd3c04d771719e938f50daf (diff) |
Replace BOOST_FOREACH with C++11 range for
Diffstat (limited to 'gr-channels/lib/selective_fading_model2_impl.h')
-rw-r--r-- | gr-channels/lib/selective_fading_model2_impl.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gr-channels/lib/selective_fading_model2_impl.h b/gr-channels/lib/selective_fading_model2_impl.h index 79c9d73b7f..680bcbb56c 100644 --- a/gr-channels/lib/selective_fading_model2_impl.h +++ b/gr-channels/lib/selective_fading_model2_impl.h @@ -59,14 +59,14 @@ public: virtual void set_fDTs(float fDTs) { - BOOST_FOREACH (gr::channels::flat_fader_impl* fader, d_faders) { + for (const auto& fader : d_faders) { fader->d_fDTs = fDTs; fader->d_step = powf(0.00125 * fDTs, 1.1); } } virtual void set_K(float K) { - BOOST_FOREACH (gr::channels::flat_fader_impl* fader, d_faders) { + for (const auto& fader : d_faders) { fader->d_K = K; fader->scale_los = sqrtf(fader->d_K) / sqrtf(fader->d_K + 1); fader->scale_nlos = (1 / sqrtf(fader->d_K + 1)); @@ -74,7 +74,7 @@ public: } virtual void set_step(float step) { - BOOST_FOREACH (gr::channels::flat_fader_impl* fader, d_faders) { + for (const auto& fader : d_faders) { fader->d_step = step; } } |