name: Optimization of Name implementation
Now, Name directly uses Block as underlying storage for name components
and name::Components (aka Name::Components) class is a helper wrapped on
top of Block class.
Change-Id: I15ca58cc6dba76dd02e973709b7b153c2613de51
refs: #1171
diff --git a/src/encoding/block.hpp b/src/encoding/block.hpp
index da81e64..f515727 100644
--- a/src/encoding/block.hpp
+++ b/src/encoding/block.hpp
@@ -348,12 +348,12 @@
for (element_iterator i = m_subBlocks.begin();
i != m_subBlocks.end();
++i)
- {
+ {
if (i->type() != type)
newContainer.push_back(*i);
- }
+ }
m_subBlocks.swap(newContainer);
-}
+ }
inline Block::element_iterator
Block::erase(Block::element_iterator position)