summaryrefslogtreecommitdiff
path: root/gr-digital/lib/pfb_clock_sync_ccf_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gr-digital/lib/pfb_clock_sync_ccf_impl.cc')
-rw-r--r--gr-digital/lib/pfb_clock_sync_ccf_impl.cc5
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);