Change iterators to use prefix ++ since it is more efficient.

This patch changes all the iterator code to use a prefix ++ instead
of postfix since it is more efficient (no need for a temporary). It
is likely that the compiler could optimize this away, but lets make
it efficient from the start.
This commit is contained in:
Cary R
2010-11-02 10:43:16 -07:00
committed by Stephen Williams
parent 77feb50d7b
commit 225ca1e205
31 changed files with 167 additions and 190 deletions
+1 -2
View File
@@ -93,8 +93,7 @@ unsigned Module::find_port(const char*name) const
PGate* Module::get_gate(perm_string name)
{
for (list<PGate*>::iterator cur = gates_.begin()
; cur != gates_.end()
; cur ++ ) {
; cur != gates_.end() ; ++ cur ) {
if ((*cur)->get_name() == name)
return *cur;