mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-22 05:47:31 +02:00
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:
+1
-1
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user