summaryrefslogtreecommitdiff
path: root/cpp/src/slice2rb/Main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2rb/Main.cpp')
-rw-r--r--cpp/src/slice2rb/Main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/src/slice2rb/Main.cpp b/cpp/src/slice2rb/Main.cpp
index 12780f394a8..f7d048ff7da 100644
--- a/cpp/src/slice2rb/Main.cpp
+++ b/cpp/src/slice2rb/Main.cpp
@@ -181,8 +181,8 @@ compile(int argc, char* argv[])
for(i = args.begin(); i != args.end(); ++i)
{
- 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)
{
@@ -199,7 +199,7 @@ compile(int argc, char* argv[])
return EXIT_FAILURE;
}
}
- if(!icecpp.close())
+ if(!icecpp->close())
{
return EXIT_FAILURE;
}
@@ -209,7 +209,7 @@ compile(int argc, char* argv[])
UnitPtr u = Unit::createUnit(false, all, ice);
int parseStatus = u->parse(*i, cppHandle, debug);
- if(!icecpp.close())
+ if(!icecpp->close())
{
u->destroy();
return EXIT_FAILURE;
@@ -221,7 +221,7 @@ compile(int argc, char* argv[])
}
else
{
- string base = icecpp.getBaseName();
+ string base = icecpp->getBaseName();
string::size_type pos = base.find_last_of("/\\");
if(pos != string::npos)
{