Skip to content

Commit 8fae794

Browse files
authored
Merge pull request #5524 from NlightNFotis/fix_macos_build
Introduce reference to avoid unneeded copy.
2 parents 31f73e1 + 0559972 commit 8fae794

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)