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:
parent
01f085ab53
commit
4643fdaa4e
3 changed files with 3 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue