Skip to content

Commit 39059d8

Browse files
Avoid unnecessary copy in require_goto_statements.cpp
Without the & we’re copying the items we’re iterating over which is unnecessary in this case.
1 parent 3c0073a commit 39059d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jbmc/unit/java-testing-utils/require_goto_statements.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ require_goto_statements::find_pointer_assignments(
263263
}
264264

265265
std::ostringstream found_symbols;
266-
for(const auto entry : all_symbols)
266+
for(const auto &entry : all_symbols)
267267
{
268268
found_symbols << entry << std::endl;
269269
}

0 commit comments

Comments
 (0)