From fb03795fd6132058aff883d3a9a5854d02931d1e Mon Sep 17 00:00:00 2001 From: tgdwyer Date: Thu, 26 Jan 2006 05:48:38 +0000 Subject: [PATCH] Constructor cleaned up a bit. --- src/removeoverlap/constraint.cpp | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/removeoverlap/constraint.cpp b/src/removeoverlap/constraint.cpp index 23da81927..e48775f8c 100644 --- a/src/removeoverlap/constraint.cpp +++ b/src/removeoverlap/constraint.cpp @@ -12,18 +12,15 @@ #include "constraint.h" #include Constraint::Constraint(Variable *left, Variable *right, double gap) +: left(left), + right(right), + gap(gap), + timeStamp(0), + active(false), + visited(false) { - if(gap>1e40) { - int i=0; // this would most probably indicate a divide by zero somewhere - } - this->left=left; left->out.push_back(this); - this->right=right; right->in.push_back(this); - this->gap=gap; - active=false; - visited=false; - timeStamp=0; } std::ostream& operator <<(std::ostream &os, const Constraint &c) { -- 2.30.2