3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00

Simplify some boolean returns.

This commit is contained in:
Bruce Mitchener 2018-12-04 22:41:31 +07:00
parent e15a39f463
commit 5fa861fa95
2 changed files with 3 additions and 13 deletions

View file

@ -1120,10 +1120,7 @@ namespace datalog {
virtual bool operator==(const iterator_core & it) {
//we worry about the equality operator only because of checking
//the equality with the end() iterator
if(is_finished() && it.is_finished()) {
return true;
}
return false;
return is_finished() && it.is_finished();
}
private:
//private and undefined copy constructor and assignment operator
@ -1153,10 +1150,7 @@ namespace datalog {
virtual bool operator==(const row_iterator_core & it) {
//we worry about the equality operator only because of checking
//the equality with the end() iterator
if(is_finished() && it.is_finished()) {
return true;
}
return false;
return is_finished() && it.is_finished();
}
private:
//private and undefined copy constructor and assignment operator