summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cpp/Main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2cpp/Main.cpp')
-rw-r--r--cpp/src/slice2cpp/Main.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/cpp/src/slice2cpp/Main.cpp b/cpp/src/slice2cpp/Main.cpp
index 9e75afaf7c2..903b5f05f7d 100644
--- a/cpp/src/slice2cpp/Main.cpp
+++ b/cpp/src/slice2cpp/Main.cpp
@@ -193,8 +193,8 @@ compile(int argc, char* argv[])
{
if(depend)
{
- Preprocessor icecpp(argv[0], *i, cppArgs);
- FILE* cppHandle = icecpp.preprocess(false);
+ PreprocessorPtr icecpp = Preprocessor::create(argv[0], *i, cppArgs);
+ FILE* cppHandle = icecpp->preprocess(false);
if(cppHandle == 0)
{
@@ -210,20 +210,20 @@ compile(int argc, char* argv[])
return EXIT_FAILURE;
}
- if(!icecpp.printMakefileDependencies(Preprocessor::CPlusPlus, includePaths, sourceExtension))
+ if(!icecpp->printMakefileDependencies(Preprocessor::CPlusPlus, includePaths, sourceExtension))
{
return EXIT_FAILURE;
}
- if(!icecpp.close())
+ if(!icecpp->close())
{
return EXIT_FAILURE;
}
}
else
{
- Preprocessor icecpp(argv[0], *i, cppArgs);
- FILE* cppHandle = icecpp.preprocess(false);
+ PreprocessorPtr icecpp = Preprocessor::create(argv[0], *i, cppArgs);
+ FILE* cppHandle = icecpp->preprocess(false);
if(cppHandle == 0)
{
@@ -240,7 +240,7 @@ compile(int argc, char* argv[])
return EXIT_FAILURE;
}
}
- if(!icecpp.close())
+ if(!icecpp->close())
{
return EXIT_FAILURE;
}
@@ -250,7 +250,7 @@ compile(int argc, char* argv[])
UnitPtr u = Unit::createUnit(false, false, ice);
int parseStatus = u->parse(*i, cppHandle, debug);
- if(!icecpp.close())
+ if(!icecpp->close())
{
u->destroy();
return EXIT_FAILURE;
@@ -264,7 +264,7 @@ compile(int argc, char* argv[])
{
try
{
- Gen gen(icecpp.getBaseName(), headerExtension, sourceExtension, extraHeaders, include,
+ Gen gen(icecpp->getBaseName(), headerExtension, sourceExtension, extraHeaders, include,
includePaths, dllExport, output, impl, checksum, stream, ice);
gen.generate(u);
}