Skip to content

Commit 76f145d

Browse files
author
Daniel Kroening
committed
c++: simplify a loop
1 parent 3b444fb commit 76f145d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/cpp/cpp_typecheck_fargs.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,7 @@ void cpp_typecheck_fargst::build(
3434
const side_effect_expr_function_callt &function_call)
3535
{
3636
in_use=true;
37-
38-
operands.clear();
39-
operands.reserve(function_call.op1().operands().size());
40-
41-
for(const auto &op : function_call.op1().operands())
42-
operands.push_back(op);
37+
operands = function_call.op1().operands();
4338
}
4439

4540
bool cpp_typecheck_fargst::match(

0 commit comments

Comments
 (0)