summaryrefslogtreecommitdiff
path: root/cpp/src/slice2php/Main.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2009-09-04 16:22:16 -0700
committerMark Spruiell <mes@zeroc.com>2009-09-04 16:22:16 -0700
commit6eecee0c43e73da2d52929155c3ada9b32081dce (patch)
tree18f12e3d1937073976eb10746221f9ae5d4731fb /cpp/src/slice2php/Main.cpp
parentbug 4196 - add class loader to InitializationData (diff)
downloadice-6eecee0c43e73da2d52929155c3ada9b32081dce.tar.bz2
ice-6eecee0c43e73da2d52929155c3ada9b32081dce.tar.xz
ice-6eecee0c43e73da2d52929155c3ada9b32081dce.zip
bug 3737:
- Remove Python workaround for 3.3.1 - Make Slice::Preprocessor a dynamically allocated class
Diffstat (limited to 'cpp/src/slice2php/Main.cpp')
-rw-r--r--cpp/src/slice2php/Main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/src/slice2php/Main.cpp b/cpp/src/slice2php/Main.cpp
index de7997f0339..ea7af8b4102 100644
--- a/cpp/src/slice2php/Main.cpp
+++ b/cpp/src/slice2php/Main.cpp
@@ -1629,8 +1629,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)
{
@@ -1647,7 +1647,7 @@ compile(int argc, char* argv[])
return EXIT_FAILURE;
}
}
- if(!icecpp.close())
+ if(!icecpp->close())
{
return EXIT_FAILURE;
}
@@ -1657,7 +1657,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;
@@ -1669,7 +1669,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)
{