From: eduardo.davila@creatis.insa-lyon.fr Date: Fri, 29 Mar 2024 14:37:10 +0000 (+0100) Subject: Clean code X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=50ec6e619f4affc65949b22b79662ba283818bc3;p=creaContours.git Clean code --- 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 }