3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 01:25:31 +00:00

remove a few str copies when throwing exceptions

This commit is contained in:
Nuno Lopes 2019-10-08 22:29:17 +01:00
parent 01f085ab53
commit 4643fdaa4e
3 changed files with 3 additions and 5 deletions

View file

@ -1464,7 +1464,7 @@ namespace sat {
if (finished_id == -1) {
switch (ex_kind) {
case ERROR_EX: throw z3_error(error_code);
default: throw default_exception(ex_msg.c_str());
default: throw default_exception(std::move(ex_msg));
}
}
return result;