Skip to content

Commit 7e91b33

Browse files
committed
Fixup Pass by const reference, instead of just const
1 parent bcca604 commit 7e91b33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util/std_expr.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1825,13 +1825,13 @@ class struct_exprt:public exprt
18251825
}
18261826

18271827
/// \return The expression for a named component of this struct.
1828-
exprt &component(const irep_idt name)
1828+
exprt &component(const irep_idt &name)
18291829
{
18301830
return operands()[to_struct_type(type()).component_number(name)];
18311831
}
18321832

18331833
/// \return The expression for a named component of this struct.
1834-
const exprt &component(const irep_idt name) const
1834+
const exprt &component(const irep_idt &name) const
18351835
{
18361836
return operands()[to_struct_type(type()).component_number(name)];
18371837
}

0 commit comments

Comments
 (0)