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-blocks/lib/annotator_1to1_impl.cc | |
parent | 25cb814aef1f8b89fd4fcf6e7577e18b0807474b (diff) |
Use C++11 ranged for and ranged insert instead of manual loops
Diffstat (limited to 'gr-blocks/lib/annotator_1to1_impl.cc')
-rw-r--r-- | gr-blocks/lib/annotator_1to1_impl.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gr-blocks/lib/annotator_1to1_impl.cc b/gr-blocks/lib/annotator_1to1_impl.cc index 7b8693f45d..6975f4f30b 100644 --- a/gr-blocks/lib/annotator_1to1_impl.cc +++ b/gr-blocks/lib/annotator_1to1_impl.cc @@ -69,11 +69,7 @@ int annotator_1to1_impl::work(int noutput_items, std::vector<tag_t> all_tags; get_tags_in_range(all_tags, i, abs_N, abs_N + noutput_items); - - 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()); } // Storing the current noutput_items as the value to the "noutput_items" key |