From: jean-pierre roux Date: Wed, 10 Mar 2010 09:09:28 +0000 (+0000) Subject: Set pointers to 0 X-Git-Tag: CREATOOLS.2-0-3~27 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?p=creaContours.git;a=commitdiff_plain;h=669c33101fbcc88c7c7970f4ac88cdfd5e27704a Set pointers to 0 --- diff --git a/bbtk/src/bbCreaContournDimensions.cxx b/bbtk/src/bbCreaContournDimensions.cxx index 29aca63..875ba21 100644 --- a/bbtk/src/bbCreaContournDimensions.cxx +++ b/bbtk/src/bbCreaContournDimensions.cxx @@ -7,11 +7,11 @@ BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaContours,nDimensions) BBTK_BLACK_BOX_IMPLEMENTATION(nDimensions,bbtk::WxBlackBox); void nDimensions::Process() { - double **vectx, **vecty, **vectz; + double **vectx = 0, **vecty = 0, **vectz = O; std::vector< void * > vectortemp; std::vector size; - vtkImageData **mask, **value; + vtkImageData **mask = 0, **value = 0; vtkImageData* img = bbGetInputIn(); @@ -30,7 +30,7 @@ void nDimensions::Process() //wxContourMainFrame::getInstance()->getMaskValue(mask, value, contourtype); } - bbSetOutputX(vectx); + bbSetOutputX(vectx); bbSetOutputY(vecty); bbSetOutputZ(vectz); bbSetOutputSizeContour(size); diff --git a/bbtk/src/bbCreaContournDimensions.h b/bbtk/src/bbCreaContournDimensions.h index c6c4b20..2f6a427 100644 --- a/bbtk/src/bbCreaContournDimensions.h +++ b/bbtk/src/bbCreaContournDimensions.h @@ -59,7 +59,7 @@ BBTK_OUTPUT(nDimensions, Value, "Value of the contours",vtkImageData*,""); BBTK_OUTPUT(nDimensions, X, "Array of arrays that contains the X coordinates of each contour", double**, ""); BBTK_OUTPUT(nDimensions, Y, "Array of arrays that contains the Y coordinates of each contour", double**, ""); BBTK_OUTPUT(nDimensions, Z, "Array of arrays that contains the Z coordinates of each contour", double**, ""); -BBTK_OUTPUT(nDimensions, SizeContour, "Vector contains the coordinates of each contour", std::vector , ""); +BBTK_OUTPUT(nDimensions, SizeContour, "Vector that contains the coordinates of each contour", std::vector , ""); BBTK_END_DESCRIBE_BLACK_BOX(nDimensions); }