Skip to content

Commit

Permalink
Refactoring: use begin()+3 instead of 3 times next
Browse files Browse the repository at this point in the history
  • Loading branch information
romainbrenguier committed Oct 28, 2017
1 parent fef1c5f commit 86e1444
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -458,9 +458,7 @@ exprt string_constraint_generatort::add_axioms_for_format(
std::string s=utf16_constant_array_to_java(
to_array_expr(s1.content()), length);
// List of arguments after s
std::vector<exprt> args(
std::next(std::next(std::next(f.arguments().begin()))),
f.arguments().end());
std::vector<exprt> args(f.arguments().begin() + 3, f.arguments().end());
return add_axioms_for_format(res, s, args);
}
else
Expand Down

0 comments on commit 86e1444

Please sign in to comment.