Avoid warning in adaptors.h (#67)
authorPeter Kovacs <kpeter@inf.elte.hu>
Fri, 12 Dec 2008 22:09:29 +0100
changeset 4703c0d39b6388c
parent 469 d369e885d196
child 471 9d9990909fc8
Avoid warning in adaptors.h (#67)
lemon/adaptors.h
     1.1 --- a/lemon/adaptors.h	Fri Dec 12 22:00:03 2008 +0100
     1.2 +++ b/lemon/adaptors.h	Fri Dec 12 22:09:29 2008 +0100
     1.3 @@ -2205,12 +2205,12 @@
     1.4      void first(Node& i) const { _graph->first(i); }
     1.5      void first(Arc& i) const { _graph->first(i); }
     1.6      void firstIn(Arc& i, const Node& n) const {
     1.7 -      bool d;
     1.8 +      bool d = true;
     1.9        _graph->firstInc(i, d, n);
    1.10        while (i != INVALID && d == (*_direction)[i]) _graph->nextInc(i, d);
    1.11      }
    1.12      void firstOut(Arc& i, const Node& n ) const {
    1.13 -      bool d;
    1.14 +      bool d = true;
    1.15        _graph->firstInc(i, d, n);
    1.16        while (i != INVALID && d != (*_direction)[i]) _graph->nextInc(i, d);
    1.17      }