X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkExecuter.cxx;h=79380c4271072db6ca5671156e5cecdfae5ca706;hb=b19674b7569940466cda380e63350157866dd76b;hp=a55fce1c41ede5eb012bd5ff065387725465b55c;hpb=19dda39fbfb4f8e1019c4f0dd37aa3afc8a3d1d6;p=bbtk.git diff --git a/kernel/src/bbtkExecuter.cxx b/kernel/src/bbtkExecuter.cxx index a55fce1..79380c4 100644 --- a/kernel/src/bbtkExecuter.cxx +++ b/kernel/src/bbtkExecuter.cxx @@ -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) )&& @@ -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 v = *((std::string*)b->bbGetOutput(output)) ;