Skip to content

Commit 4c6c4a2

Browse files
author
Owen
committed
Do not make reference to temporary variable
This should not be a reference
1 parent f5f7aa5 commit 4c6c4a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -462,10 +462,10 @@ require_goto_statements::require_entry_point_argument_assignment(
462462
{
463463
// Trace the creation of the object that is being supplied as the input
464464
// argument to the function under test
465-
const pointer_assignment_locationt &argument_assignments =
465+
const pointer_assignment_locationt argument_assignments =
466466
find_pointer_assignments(
467-
id2string(goto_functionst::entry_point()) + "::" +
468-
id2string(argument_name),
467+
id2string(goto_functionst::entry_point()) +
468+
"::" + id2string(argument_name),
469469
entry_point_statements);
470470

471471
// There should be at most one assignment to it

0 commit comments

Comments
 (0)