Skip to content

Commit 6339a5b

Browse files
committed
Add const and &
This makes it explicit that ops is not copied.
1 parent d1e4b19 commit 6339a5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/expr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Author: Daniel Kroening, [email protected]
2828
/// beyond the supplied limit.
2929
std::size_t exprt::bounded_size(std::size_t count, std::size_t limit) const
3030
{
31-
auto ops = operands();
31+
const auto &ops = operands();
3232
count += ops.size();
3333
for(const auto &op : ops)
3434
{

0 commit comments

Comments
 (0)