From 6eecee0c43e73da2d52929155c3ada9b32081dce Mon Sep 17 00:00:00 2001 From: Mark Spruiell Date: Fri, 4 Sep 2009 16:22:16 -0700 Subject: bug 3737: - Remove Python workaround for 3.3.1 - Make Slice::Preprocessor a dynamically allocated class --- cpp/src/slice2freeze/Main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cpp/src/slice2freeze/Main.cpp') diff --git a/cpp/src/slice2freeze/Main.cpp b/cpp/src/slice2freeze/Main.cpp index d78c3cd9865..716fc40cbe5 100644 --- a/cpp/src/slice2freeze/Main.cpp +++ b/cpp/src/slice2freeze/Main.cpp @@ -1946,15 +1946,15 @@ compile(int argc, char* argv[]) for(vector::size_type idx = 1; idx < args.size(); ++idx) { - Preprocessor icecpp(argv[0], args[idx], cppArgs); + PreprocessorPtr icecpp = Preprocessor::create(argv[0], args[idx], cppArgs); // // Add an include file for each Slice file. Note that the .h extension // is replaced with headerExtension later. // - includes.push_back(icecpp.getBaseName() + ".h"); + includes.push_back(icecpp->getBaseName() + ".h"); - FILE* cppHandle = icecpp.preprocess(false); + FILE* cppHandle = icecpp->preprocess(false); if(cppHandle == 0) { @@ -1982,7 +1982,7 @@ compile(int argc, char* argv[]) u->visit(&visitor, false); } - if(!icecpp.close()) + if(!icecpp->close()) { u->destroy(); return EXIT_FAILURE; -- cgit v1.2.3