mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 00:55:31 +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
|
@ -844,8 +844,7 @@ namespace qe {
|
|||
break;
|
||||
case l_undef:
|
||||
result.push_back(in.get());
|
||||
std::string s = "search failed";
|
||||
throw tactic_exception(s.c_str());
|
||||
throw tactic_exception("search failed");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1279,7 +1279,7 @@ namespace qe {
|
|||
if (s == "ok" || s == "unknown") {
|
||||
s = m_fa.s().reason_unknown();
|
||||
}
|
||||
throw tactic_exception(s.c_str());
|
||||
throw tactic_exception(std::move(s));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1344,7 +1344,7 @@ namespace qe {
|
|||
s = m_fa.s().reason_unknown();
|
||||
}
|
||||
|
||||
throw tactic_exception(s.c_str());
|
||||
throw tactic_exception(std::move(s));
|
||||
}
|
||||
return l_true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue