From 50ec6e619f4affc65949b22b79662ba283818bc3 Mon Sep 17 00:00:00 2001 From: "eduardo.davila@creatis.insa-lyon.fr" Date: Fri, 29 Mar 2024 15:37:10 +0100 Subject: [PATCH] Clean code --- bbtk/src/bbcreaContoursSetViewerWindowColorLevel.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bbtk/src/bbcreaContoursSetViewerWindowColorLevel.cxx b/bbtk/src/bbcreaContoursSetViewerWindowColorLevel.cxx index d158ca7..a1610bc 100644 --- a/bbtk/src/bbcreaContoursSetViewerWindowColorLevel.cxx +++ b/bbtk/src/bbcreaContoursSetViewerWindowColorLevel.cxx @@ -13,7 +13,6 @@ BBTK_BLACK_BOX_IMPLEMENTATION(SetViewerWindowColorLevel,bbtk::AtomicBlackBox); //===== void SetViewerWindowColorLevel::Process() { - // THE MAIN PROCESSING METHOD BODY // Here we simply set the input 'In' value to the output 'Out' // And print out the output value @@ -25,11 +24,10 @@ void SetViewerWindowColorLevel::Process() // (the one provided in the attribute 'name' of the tag 'input') // * TYPE is the C++ type of the input/output // (the one provided in the attribute 'type' of the tag 'input') - if ( (bbGetInputWindowColorLevel().size()==2 ) && (bbGetInputwxContourMainFrame()!=NULL )) { - double w=bbGetInputWindowColorLevel()[0]; - double c=bbGetInputWindowColorLevel()[1]; + double w = bbGetInputWindowColorLevel()[0]; + double c = bbGetInputWindowColorLevel()[1]; bbGetInputwxContourMainFrame()->onBrigthnessColorWindowLevel(w,c); } // if WindowColorLevel size && wxContourMainFrame } -- 2.45.1