summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib/buffer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-runtime/lib/buffer.cc')
-rw-r--r--gnuradio-runtime/lib/buffer.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/gnuradio-runtime/lib/buffer.cc b/gnuradio-runtime/lib/buffer.cc
index dc86b90aba..f00e9a04bf 100644
--- a/gnuradio-runtime/lib/buffer.cc
+++ b/gnuradio-runtime/lib/buffer.cc
@@ -252,10 +252,7 @@ namespace gr {
*/
std::multimap<uint64_t, tag_t>::iterator end_itr = d_item_tags.lower_bound(max_time);
std::multimap<uint64_t, tag_t>::iterator begin_itr = d_item_tags.begin();
- while (begin_itr != end_itr) {
- d_item_tags.erase(begin_itr);
- begin_itr++;
- }
+ d_item_tags.erase(begin_itr, end_itr);
}
long