[Lemon-commits] Alpar Juttner: Merge bugfix #307
Lemon HG
hg at lemon.cs.elte.hu
Mon Aug 31 07:18:50 CEST 2009
details: http://lemon.cs.elte.hu/hg/lemon/rev/31a389202e65
changeset: 741:31a389202e65
user: Alpar Juttner <alpar [at] cs.elte.hu>
date: Mon Aug 31 07:05:13 2009 +0200
description:
Merge bugfix #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