mirror of
https://github.com/Z3Prover/z3
synced 2025-05-05 23:05:46 +00:00
avoid a few str copies + symbol hiding
This commit is contained in:
parent
70ada9919e
commit
cd4b53500c
13 changed files with 22 additions and 33 deletions
|
@ -106,8 +106,7 @@ extern "C" {
|
|||
SET_ERROR_CODE(Z3_INVALID_ARG, "expression is not a string literal");
|
||||
return "";
|
||||
}
|
||||
std::string s = str.encode();
|
||||
return mk_c(c)->mk_external_string(s);
|
||||
return mk_c(c)->mk_external_string(str.encode());
|
||||
Z3_CATCH_RETURN("");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue