From 1b85d1a7875c8ae3491009225e5134ca5734ca2e Mon Sep 17 00:00:00 2001 From: Thomas Habets <thomas@habets.se> Date: Fri, 8 Nov 2019 20:21:30 +0000 Subject: Use C++11 ranged for and ranged insert instead of manual loops --- gr-blocks/lib/annotator_alltoall_impl.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'gr-blocks/lib/annotator_alltoall_impl.cc') diff --git a/gr-blocks/lib/annotator_alltoall_impl.cc b/gr-blocks/lib/annotator_alltoall_impl.cc index 7bb5723450..c257c0cb9f 100644 --- a/gr-blocks/lib/annotator_alltoall_impl.cc +++ b/gr-blocks/lib/annotator_alltoall_impl.cc @@ -70,11 +70,7 @@ int annotator_alltoall_impl::work(int noutput_items, std::vector<tag_t> all_tags; get_tags_in_range(all_tags, i, abs_N, end_N); - - std::vector<tag_t>::iterator itr; - for (itr = all_tags.begin(); itr != all_tags.end(); itr++) { - d_stored_tags.push_back(*itr); - } + d_stored_tags.insert(d_stored_tags.end(), all_tags.begin(), all_tags.end()); } // Source ID and key for any tag that might get applied from this block -- cgit v1.2.3