From: jean-pierre roux Date: Thu, 15 Oct 2009 09:26:30 +0000 (+0000) Subject: avoid warning X-Git-Tag: CREATOOLS.2-0-3~44 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?p=creaRigidRegistration.git;a=commitdiff_plain;h=c516e4e70b2b455abdc1f6d9a22db1767794e136 avoid warning --- diff --git a/PackRecalage/src/bbPackRecalageReSlicerBox.cxx b/PackRecalage/src/bbPackRecalageReSlicerBox.cxx index 57607c1..28a1d91 100644 --- a/PackRecalage/src/bbPackRecalageReSlicerBox.cxx +++ b/PackRecalage/src/bbPackRecalageReSlicerBox.cxx @@ -9,7 +9,7 @@ BBTK_BLACK_BOX_IMPLEMENTATION(ReSlicerBox,bbtk::AtomicBlackBox); void ReSlicerBox::Process() { - if(bbGetInputOrigin()[0] != NULL) + if(bbGetInputOrigin()[0]) { image = vtkImageChangeInformation::New(); image->SetInput( bbGetInputIn() ); diff --git a/PackRecalage/src/bbPackRecalageTransform2DBox.cxx b/PackRecalage/src/bbPackRecalageTransform2DBox.cxx index 788bca6..6a7bd1b 100644 --- a/PackRecalage/src/bbPackRecalageTransform2DBox.cxx +++ b/PackRecalage/src/bbPackRecalageTransform2DBox.cxx @@ -7,7 +7,7 @@ BBTK_ADD_BLACK_BOX_TO_PACKAGE(PackRecalage,Transform2DBox) BBTK_BLACK_BOX_IMPLEMENTATION(Transform2DBox,bbtk::AtomicBlackBox); void Transform2DBox::Process() { - if(bbGetInputCenterPoint()[0] != NULL) + if(bbGetInputCenterPoint()[0]) { // The inputs are set in the library transformer transformer->SetCenterPoint( bbGetInputCenterPoint() );