diff options
author | Thomas Habets <thomas@habets.se> | 2019-11-08 20:21:30 +0000 |
---|---|---|
committer | Michael Dickens <michael.dickens@ettus.com> | 2019-12-04 10:13:22 -0500 |
commit | 1b85d1a7875c8ae3491009225e5134ca5734ca2e (patch) | |
tree | 58d7431551e0914c9ea76ba6952ecedca340747c /gr-digital/lib/pfb_clock_sync_ccf_impl.cc | |
parent | 25cb814aef1f8b89fd4fcf6e7577e18b0807474b (diff) |
Use C++11 ranged for and ranged insert instead of manual loops
Diffstat (limited to 'gr-digital/lib/pfb_clock_sync_ccf_impl.cc')
-rw-r--r-- | gr-digital/lib/pfb_clock_sync_ccf_impl.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gr-digital/lib/pfb_clock_sync_ccf_impl.cc b/gr-digital/lib/pfb_clock_sync_ccf_impl.cc index 851a593bea..103fac6850 100644 --- a/gr-digital/lib/pfb_clock_sync_ccf_impl.cc +++ b/gr-digital/lib/pfb_clock_sync_ccf_impl.cc @@ -416,11 +416,10 @@ int pfb_clock_sync_ccf_impl::general_work(int noutput_items, // Manage Tags std::vector<tag_t> xtags; - std::vector<tag_t>::iterator itags; d_new_in = nitems_read(0) + count + d_out_idx + d_sps; get_tags_in_range(xtags, 0, d_old_in, d_new_in); - for (itags = xtags.begin(); itags != xtags.end(); itags++) { - tag_t new_tag = *itags; + for (const auto& tag : xtags) { + tag_t new_tag = tag; // new_tag.offset = d_last_out + d_taps_per_filter/(2*d_sps) - 2; new_tag.offset = d_last_out + d_taps_per_filter / 4 - 2; add_item_tag(0, new_tag); |