[Lemon-commits] Peter Kovacs: Bug fix in Preflow and Circulation...
Lemon HG
hg at lemon.cs.elte.hu
Mon Aug 31 07:18:49 CEST 2009
details: http://lemon.cs.elte.hu/hg/lemon/rev/1f08e846df29
changeset: 740:1f08e846df29
user: Peter Kovacs <kpeter [at] inf.elte.hu>
date: Tue Aug 18 10:24:31 2009 +0200
description:
Bug fix in Preflow and Circulation (#307)
diffstat:
lemon/circulation.h | 4 ++--
lemon/preflow.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diffs (42 lines):
diff --git a/lemon/circulation.h b/lemon/circulation.h
--- a/lemon/circulation.h
+++ b/lemon/circulation.h
@@ -453,7 +453,7 @@
/// \brief Sets the tolerance used by algorithm.
///
/// Sets the tolerance used by algorithm.
- Circulation& tolerance(const Tolerance& tolerance) const {
+ Circulation& tolerance(const Tolerance& tolerance) {
_tol = tolerance;
return *this;
}
@@ -462,7 +462,7 @@
///
/// Returns a const reference to the tolerance.
const Tolerance& tolerance() const {
- return tolerance;
+ return _tol;
}
/// \name Execution Control
diff --git a/lemon/preflow.h b/lemon/preflow.h
--- a/lemon/preflow.h
+++ b/lemon/preflow.h
@@ -374,7 +374,7 @@
/// \brief Sets the tolerance used by algorithm.
///
/// Sets the tolerance used by algorithm.
- Preflow& tolerance(const Tolerance& tolerance) const {
+ Preflow& tolerance(const Tolerance& tolerance) {
_tolerance = tolerance;
return *this;
}
@@ -383,7 +383,7 @@
///
/// Returns a const reference to the tolerance.
const Tolerance& tolerance() const {
- return tolerance;
+ return _tolerance;
}
/// \name Execution Control
More information about the Lemon-commits
mailing list