commit | 7b4a7fc09758bcc98deedb18c5b5dd7425361098 | [log] [tgz] |
---|---|---|
author | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Fri Jan 10 10:11:07 2014 -0800 |
committer | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Fri Jan 10 10:11:07 2014 -0800 |
tree | 7d7d43f4225547847c418dcd022082c397e7ee53 | |
parent | 50ca62781a75816357ef52b62220e87c3f08b8ce [diff] [blame] |
name+data: Small improvements Change-Id: If366a2149cc52a6ee0e3113761772a6e9de6f735
diff --git a/src/name.cpp b/src/name.cpp index b71c23c..35380c3 100644 --- a/src/name.cpp +++ b/src/name.cpp
@@ -360,6 +360,9 @@ wire_ = wire; wire_.parse(); + components_.clear(); + components_.reserve(wire_.getAll().size()); + for (Block::element_const_iterator i = wire_.getAll().begin(); i != wire_.getAll().end(); ++i)