3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-01 21:05:52 +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

@ -172,7 +172,7 @@ public:
}
for (unsigned i = 0; i < n; i++) {
if (tmp[i] == '.') {
param_name = tmp.substr(i+1).c_str();
param_name = tmp.c_str() + i + 1;
tmp.resize(i);
mod_name = tmp.c_str();
return;