3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 01:25:31 +00:00

Merge pull request #1972 from waywardmonkeys/use-vector-empty

Prefer using empty rather than size comparisons.
This commit is contained in:
Nikolaj Bjorner 2018-11-27 10:39:34 -08:00 committed by GitHub
commit 5df29daa35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
56 changed files with 104 additions and 104 deletions

View file

@ -472,7 +472,7 @@ extern "C" {
model_smt2_pp(buffer, mk_c(c)->m(), *(to_model_ref(m)), 0);
// Hack for removing the trailing '\n'
result = buffer.str();
if (result.size() != 0)
if (!result.empty())
result.resize(result.size()-1);
}
else {