mirror of
https://github.com/Z3Prover/z3
synced 2025-06-28 08:58:44 +00:00
remove some allocs from exceptions
This commit is contained in:
parent
8791f61aa7
commit
cef17c22a1
19 changed files with 36 additions and 40 deletions
|
@ -206,7 +206,7 @@ void fail_if_proof_generation(char const * tactic_name, goal_ref const & in) {
|
|||
if (in->proofs_enabled()) {
|
||||
std::string msg = tactic_name;
|
||||
msg += " does not support proof production";
|
||||
throw tactic_exception(msg.c_str());
|
||||
throw tactic_exception(std::move(msg));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -214,7 +214,7 @@ void fail_if_unsat_core_generation(char const * tactic_name, goal_ref const & in
|
|||
if (in->unsat_core_enabled()) {
|
||||
std::string msg = tactic_name;
|
||||
msg += " does not support unsat core production";
|
||||
throw tactic_exception(msg.c_str());
|
||||
throw tactic_exception(std::move(msg));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -222,6 +222,6 @@ void fail_if_model_generation(char const * tactic_name, goal_ref const & in) {
|
|||
if (in->models_enabled()) {
|
||||
std::string msg = tactic_name;
|
||||
msg += " does not generate models";
|
||||
throw tactic_exception(msg.c_str());
|
||||
throw tactic_exception(std::move(msg));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue