mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
remove a few string copies
This commit is contained in:
parent
db5a1a7604
commit
b2d5c24c1d
18 changed files with 39 additions and 80 deletions
|
@ -510,7 +510,7 @@ namespace smt {
|
|||
#else
|
||||
strm << "lemma_" << (++m_lemma_id) << ".smt2";
|
||||
#endif
|
||||
return strm.str();
|
||||
return std::move(strm).str();
|
||||
}
|
||||
|
||||
|
||||
|
@ -722,7 +722,7 @@ namespace smt {
|
|||
<< std::setw(4) << m_stats.m_num_del_clauses << " "
|
||||
<< std::setw(7) << mem_stat() << ")\n";
|
||||
|
||||
std::string str(strm.str());
|
||||
std::string str = std::move(strm).str();
|
||||
svector<size_t> offsets;
|
||||
for (size_t i = 0; i < str.size(); ++i) {
|
||||
while (i < str.size() && str[i] != ' ') ++i;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue