3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-18 13:05:33 +00:00

avoid a few str copies + symbol hiding

This commit is contained in:
Nuno Lopes 2019-03-08 10:13:46 +00:00
parent 70ada9919e
commit cd4b53500c
13 changed files with 22 additions and 33 deletions

View file

@ -34,7 +34,7 @@ extern "C" {
result = buffer.str();
SASSERT(result.size() > 0);
result.resize(result.size()-1);
return mk_c(c)->mk_external_string(result);
return mk_c(c)->mk_external_string(std::move(result));
Z3_CATCH_RETURN("");
}