help return-value-optimization
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Thu, 08 May 2008 11:22:40 -0700
changeset 3057 e26ab7b61c7c
parent 3056 d4bb2f7687d1
child 3058 31e4703e08da
help return-value-optimization
src/common/packet.cc
--- a/src/common/packet.cc	Thu May 08 11:22:25 2008 -0700
+++ b/src/common/packet.cc	Thu May 08 11:22:40 2008 -0700
@@ -63,14 +63,10 @@
 TagIterator::Next (void)
 {
   TagList::Iterator::Item i = m_current.Next ();
-  
-  TagIterator::Item item = TagIterator::Item (i.tid, 
-                                              i.start-m_current.GetOffsetStart (), 
-                                              i.end-m_current.GetOffsetStart (), 
-                                              i.buf);
-  
-  
-  return item;
+  return TagIterator::Item (i.tid, 
+                            i.start-m_current.GetOffsetStart (), 
+                            i.end-m_current.GetOffsetStart (), 
+                            i.buf);
 }
 TagIterator::TagIterator (TagList::Iterator i)
   : m_current (i)