diff options
author | Tim O'Shea <tim.oshea753@gmail.com> | 2014-09-22 15:33:15 -0400 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2014-09-24 15:49:31 -0700 |
commit | 8bd013db8d42019e94db5773899c6c0fd60e63fd (patch) | |
tree | 39aba8fb1ba9ca6cf19d530dd453a2d7b8b96a87 /gnuradio-runtime/lib/buffer.cc | |
parent | 71299bf848d3185af73e36bcee0de7a649398b91 (diff) |
CID 1240027: runtime: clean up tag pruning using iter range
Diffstat (limited to 'gnuradio-runtime/lib/buffer.cc')
-rw-r--r-- | gnuradio-runtime/lib/buffer.cc | 5 |
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 |