3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-27 10:55:50 +00:00

move a few strings instead of copying

This commit is contained in:
Nuno Lopes 2019-02-28 10:53:27 +00:00
parent 2417bedb98
commit 6a0c409b0f
14 changed files with 30 additions and 30 deletions

View file

@ -1584,8 +1584,8 @@ void ast_manager::raise_exception(char const * msg) {
throw ast_exception(msg);
}
void ast_manager::raise_exception(std::string const& msg) {
throw ast_exception(msg.c_str());
void ast_manager::raise_exception(std::string && msg) {
throw ast_exception(std::move(msg));
}