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 -1
View File
@@ -203,7 +203,7 @@ static void final_cleanup()
#ifdef CHECK_WITH_VALGRIND
/* Clean up the file name table. */
for (vector<const char*>::iterator cur = file_names.begin();
cur != file_names.end() ; cur++) {
cur != file_names.end() ; ++ cur ) {
delete[] *cur;
}
/* Clear the static result buffer. */