Skip to content

Commit 0559972

Browse files
author
Fotis Koutoulakis
committed
Introduce reference to avoid unneeded copy.
Previously this broke the build on macOS, because the compiler was complaining about creating a copy of a const std::pair - which registered as an error (because of -Werror).
1 parent 31f73e1 commit 0559972

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jbmc/src/java_bytecode/lambda_synthesis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ get_interface_methods(const irep_idt &interface_id, const namespacet &ns)
156156
{
157157
const methods_by_name_and_descriptort base_methods =
158158
get_interface_methods(base.type().get_identifier(), ns);
159-
for(const auto base_method : base_methods)
159+
for(const auto &base_method : base_methods)
160160
{
161161
if(base_method.second)
162162
{

0 commit comments

Comments
 (0)