[Lemon-commits] Peter Kovacs: Avoid warning in adaptors.h (#67)
Lemon HG
hg at lemon.cs.elte.hu
Sun Jan 11 16:18:25 CET 2009
details: http://lemon.cs.elte.hu/hg/lemon/rev/3c0d39b6388c
changeset: 470:3c0d39b6388c
user: Peter Kovacs <kpeter [at] inf.elte.hu>
date: Fri Dec 12 22:09:29 2008 +0100
description:
Avoid warning in adaptors.h (#67)
diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
lemon/adaptors.h | 4 ++--
diffs (18 lines):
diff --git a/lemon/adaptors.h b/lemon/adaptors.h
--- a/lemon/adaptors.h
+++ b/lemon/adaptors.h
@@ -2205,12 +2205,12 @@
void first(Node& i) const { _graph->first(i); }
void first(Arc& i) const { _graph->first(i); }
void firstIn(Arc& i, const Node& n) const {
- bool d;
+ bool d = true;
_graph->firstInc(i, d, n);
while (i != INVALID && d == (*_direction)[i]) _graph->nextInc(i, d);
}
void firstOut(Arc& i, const Node& n ) const {
- bool d;
+ bool d = true;
_graph->firstInc(i, d, n);
while (i != INVALID && d != (*_direction)[i]) _graph->nextInc(i, d);
}
More information about the Lemon-commits
mailing list