3
0
Fork 0
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:
Nuno Lopes 2018-07-02 17:08:02 +01:00
parent 8791f61aa7
commit cef17c22a1
19 changed files with 36 additions and 40 deletions

View file

@ -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");
}
}

View file

@ -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;
}