3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-14 06:45:25 +00:00

Use const& to reduce copies.

This commit is contained in:
Bruce Mitchener 2019-06-02 09:58:32 +07:00
parent 62de187d02
commit a12de12515
5 changed files with 6 additions and 6 deletions

View file

@ -70,7 +70,7 @@ func_decl * pb_decl_plugin::mk_func_decl(decl_kind k, unsigned num_parameters, p
}
else if (p.is_rational()) {
// HACK: ast pretty printer does not work with rationals.
rational r = p.get_rational();
rational const& r = p.get_rational();
if (r.is_int32()) {
params.push_back(parameter(r.get_int32()));
}