commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] [gnuradio] 20/22: CID 1240027: runtime: clean up tag p


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

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

trondeau pushed a commit to branch master
in repository gnuradio.

commit 3aededd3fb7379a232c9a7e578bc5efb67de0845
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]