commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 05/06: CID 1240027: runtime: clean up tag p


From: git
Subject: [Commit-gnuradio] [gnuradio] 05/06: CID 1240027: runtime: clean up tag pruning using iter range
Date: Wed, 24 Sep 2014 22:54:05 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch master
in repository gnuradio.

commit 8bd013db8d42019e94db5773899c6c0fd60e63fd
Author: Tim O'Shea <address@hidden>
Date:   Mon Sep 22 15:33:15 2014 -0400

    CID 1240027: runtime: clean up tag pruning using iter range
---
 gnuradio-runtime/lib/buffer.cc | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/gnuradio-runtime/lib/buffer.cc b/gnuradio-runtime/lib/buffer.cc
index dc86b90..f00e9a0 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]