Skip to content

Commit e57e194

Browse files
Thomas Kileypeterschrammel
Thomas Kiley
andcommitted
Tidy up full_lhs_value
Applied modern coding standards to pulled out code Co-authored-by: Peter Schrammel <[email protected]>
1 parent b64757e commit e57e194

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/goto-programs/xml_goto_trace.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ xmlt full_lhs_value(const goto_trace_stept &step, const namespacet &ns)
2727
{
2828
xmlt full_lhs_value{"full_lhs_value"};
2929

30-
auto lhs_object = step.get_lhs_object();
31-
irep_idt identifier =
30+
const auto &lhs_object = step.get_lhs_object();
31+
const irep_idt identifier =
3232
lhs_object.has_value() ? lhs_object->get_identifier() : irep_idt();
3333

3434
if(step.full_lhs_value.is_not_nil())

0 commit comments

Comments
 (0)