[Sketch] remove unnecessary Boolean comparisons

This commit is contained in:
Uwe
2022-06-19 18:35:52 +02:00
parent f4891488d3
commit 68a499574a
6 changed files with 17 additions and 17 deletions

View File

@@ -1925,7 +1925,7 @@ int Sketch::addConstraints(const std::vector<Constraint *> &ConstraintList,
int cid = 0;
for (std::vector<Constraint *>::const_iterator it = ConstraintList.begin();it!=ConstraintList.end();++it,++cid) {
if (!unenforceableConstraints[cid] && (*it)->Type != Block && (*it)->isActive == true) {
if (!unenforceableConstraints[cid] && (*it)->Type != Block && (*it)->isActive) {
rtn = addConstraint (*it);
if(rtn == -1) {