
OUPS !!!! Index: olena/ChangeLog from Simon Odou <simon@lrde.epita.fr> * oln/morpher/slicing_morpher.hh: Minor fix. Index: olena/oln/morpher/slicing_morpher.hh --- olena/oln/morpher/slicing_morpher.hh Mon, 29 Mar 2004 09:33:48 +0200 odou_s (oln/m/42_slicing_mo 1.1 600) +++ olena/oln/morpher/slicing_morpher.hh Mon, 29 Mar 2004 11:21:41 +0200 odou_s (oln/m/42_slicing_mo 1.1 600) @@ -85,12 +85,16 @@ /// Return a size of N-1 dimension. oln::image1d_size* image_size_dec(const oln::image2d_size& image_size) { + // We can't use typedef here because image2d_size and image3d_size don't have + // the same number of arguments. return new oln::image1d_size(image_size.ncols(), image_size.border()); } /// Return a size of N-1 dimension. oln::image2d_size* image_size_dec(const oln::image3d_size& image_size) { + // We can't use typedef here because image2d_size and image3d_size don't have + // the same number of arguments. return new oln::image2d_size(image_size.nrows(), image_size.ncols(), image_size.border()); } @@ -158,6 +162,7 @@ ~super_slicing_morpher() { delete size_; + delete impl_; } /*! -- Simon Odou simon@lrde.epita.fr

"Simon" == Simon Odou <simon@lrde.epita.fr> writes:
Index: olena/oln/morpher/slicing_morpher.hh --- olena/oln/morpher/slicing_morpher.hh Mon, 29 Mar 2004 09:33:48 +0200 odou_s (oln/m/42_slicing_mo 1.1 600) +++ olena/oln/morpher/slicing_morpher.hh Mon, 29 Mar 2004 11:21:41 +0200 odou_s (oln/m/42_slicing_mo 1.1 600) @@ -85,12 +85,16 @@ /// Return a size of N-1 dimension. oln::image1d_size* image_size_dec(const oln::image2d_size& image_size) { + // We can't use typedef here because image2d_size and image3d_size don't have + // the same number of arguments.
80 col !!! En fait, 76.

Simon Odou wrote:
OUPS !!!!
Index: olena/ChangeLog from Simon Odou <simon@lrde.epita.fr> * oln/morpher/slicing_morpher.hh: Minor fix.
Index: olena/oln/morpher/slicing_morpher.hh --- olena/oln/morpher/slicing_morpher.hh Mon, 29 Mar 2004 09:33:48 +0200 odou_s (oln/m/42_slicing_mo 1.1 600) +++ olena/oln/morpher/slicing_morpher.hh Mon, 29 Mar 2004 11:21:41 +0200 odou_s (oln/m/42_slicing_mo 1.1 600) @@ -85,12 +85,16 @@ /// Return a size of N-1 dimension. oln::image1d_size* image_size_dec(const oln::image2d_size& image_size) { + // We can't use typedef here because image2d_size and image3d_size don't have + // the same number of arguments. return new oln::image1d_size(image_size.ncols(), image_size.border()); }
/// Return a size of N-1 dimension. oln::image2d_size* image_size_dec(const oln::image3d_size& image_size)
oln::image2d_size* image_size_dec(const oln::image3d_size &image_size)
~super_slicing_morpher() { delete size_; + delete impl_;
Je suppose que tu sais ce que tu fais (j'aime pas les pointeurs, ça me fait peur :( (oln 10.116) % rgrep "delete" ~/olena/olena/oln/core /home/lrde/lrde-2005/van-vl_n/olena/olena/oln/core/impl/image_impl.hh: delete mlc::to_exact(this); /home/lrde/lrde-2005/van-vl_n/olena/olena/oln/core/impl/image_array.hh: delete[] buffer; /home/lrde/lrde-2005/van-vl_n/olena/olena/oln/core/impl/image_array3d.hh: delete[] array2; /home/lrde/lrde-2005/van-vl_n/olena/olena/oln/core/impl/image_array3d.hh: delete[] array; /home/lrde/lrde-2005/van-vl_n/olena/olena/oln/core/impl/image_array2d.hh: delete[] array; -- Niels
participants (3)
-
Akim Demaille
-
Niels Van Vliet
-
Simon Odou