X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fappli%2Fbbs2cpp%2Fbbs2cpp.cxx;h=8541b5ed1e854f75298e6d7b5dda0eac25de55ff;hb=a94262289f8148799f8e319c216d5af2a6053c18;hp=529a035dc6386d47d3a266548217444ce7784c54;hpb=05e7ead34117d7cd9946e02dfc6a4f1079630f4f;p=bbtk.git diff --git a/kernel/appli/bbs2cpp/bbs2cpp.cxx b/kernel/appli/bbs2cpp/bbs2cpp.cxx index 529a035..8541b5e 100644 --- a/kernel/appli/bbs2cpp/bbs2cpp.cxx +++ b/kernel/appli/bbs2cpp/bbs2cpp.cxx @@ -1,3 +1,22 @@ +/*========================================================================= + + Program: bbtk + Module: $RCSfile: bbs2cpp.cxx,v $ + Language: C++ + Date: $Date: 2008/10/14 14:20:24 $ + Version: $Revision: 1.4 $ + + Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de + l'Image). All rights reserved. See Doc/License.txt or + http://www.creatis.insa-lyon.fr/Public/bbtk/License.html for details. + + This software is distributed WITHOUT ANY WARRANTY; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the above copyright notices for more information. + +=========================================================================*/ + + #include "bbtkInterpreter.h" #include "bbtkUtilities.h" @@ -8,7 +27,7 @@ int main(int argc, char* argv[]) std::string file,path; file = bbtk::Utilities::ExtractScriptName(argv[1],path); file += ".h"; - bbtk::Interpreter* I = new bbtk::Interpreter(file); + bbtk::Interpreter::Pointer I = bbtk::Interpreter::New(file); I->SetThrow(true); @@ -21,10 +40,8 @@ int main(int argc, char* argv[]) e.Print(); } - delete I; - return 0; } - + // EOF