* tools/area_flooding.cc (main): s/p.to_psite()/p.unproxy_()/.
---
milena/ChangeLog | 6 ++++++
milena/tools/area_flooding.cc | 8 +++++---
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index ad04ece..16c2b93 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,5 +1,11 @@
2008-09-17 Roland Levillain <roland(a)lrde.epita.fr>
+ Update tools/area_flooding.
+
+ * tools/area_flooding.cc (main): s/p.to_psite()/p.unproxy_()/.
+
+2008-09-17 Roland Levillain <roland(a)lrde.epita.fr>
+
Re-enable some tests on line graph entities.
* tests/core/image/line_graph_image.cc: Remove useless #include's.
diff --git a/milena/tools/area_flooding.cc b/milena/tools/area_flooding.cc
index 1ebef04..f10c7e0 100644
--- a/milena/tools/area_flooding.cc
+++ b/milena/tools/area_flooding.cc
@@ -110,7 +110,7 @@ int main(int argc, char* argv[])
`-----------*/
/* FIXME: I'm not sure this is the way it should be done. Anyway,
- we should implemented this as a canvas. */
+ we should implement this as a canvas. */
typedef line_graph_elt_neighborhood<point2d> nbh_t;
nbh_t nbh;
@@ -163,8 +163,10 @@ int main(int argc, char* argv[])
for_all(p)
if (wshed(p) != wshed_label)
{
- wshed2d(p.to_psite().first()) = wshed(p);
- wshed2d(p.to_psite().second()) = wshed(p);
+ // FIXME: Equip the iterator with first() and second()
+ // accessors?
+ wshed2d(p.unproxy_().first()) = wshed(p);
+ wshed2d(p.unproxy_().second()) = wshed(p);
}
// For each basin, compute the average gray level.
--
1.6.0.1
Show replies by date