]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkExecuter.cxx
Clean code
[bbtk.git] / kernel / src / bbtkExecuter.cxx
index a55fce1c41ede5eb012bd5ff065387725465b55c..79380c4271072db6ca5671156e5cecdfae5ca706 100644 (file)
@@ -426,7 +426,7 @@ namespace bbtk
                       const std::string &input,
                       const std::string &value)
   {
-    BlackBox::Pointer b = GetCurrentDescriptor()->GetPrototype()->bbGetBlackBox(box);
+      BlackBox::Pointer b = GetCurrentDescriptor()->GetPrototype()->bbGetBlackBox(box);
     // Looks for the adaptor
 
     if ( ( b->bbGetInputType(input) != typeid(bbtk::any<bbtk::thing>) )&&
@@ -447,9 +447,7 @@ namespace bbtk
          a->bbExecute();
          b->bbSetInput(input,a->bbGetOutput("Out"));
         //         a->Delete();
-      }
-    else 
-      {
+      } else {
       std::string v(value);
       b->bbSetInput(input,v);
       }
@@ -487,9 +485,7 @@ namespace bbtk
        //b->bbSetInput(input,a->bbGetOutput("Out"));
        //        a->bbDelete();
         return r;
-      }
-    else
-      {
+      } else  {
        b->bbExecute();
        return b->bbGetOutput(output).unsafe_get<std::string>();
        // std::string v = *((std::string*)b->bbGetOutput(output)) ;