summaryrefslogtreecommitdiff
path: root/py/modules/IcePy/Slice.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 /py/modules/IcePy/Slice.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 'py/modules/IcePy/Slice.cpp')
-rw-r--r--py/modules/IcePy/Slice.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/py/modules/IcePy/Slice.cpp b/py/modules/IcePy/Slice.cpp
index d34605fa55f..1dc68795ddc 100644
--- a/py/modules/IcePy/Slice.cpp
+++ b/py/modules/IcePy/Slice.cpp
@@ -133,8 +133,8 @@ IcePy_loadSlice(PyObject* /*self*/, PyObject* args)
for(vector<string>::const_iterator p = files.begin(); p != files.end(); ++p)
{
string file = *p;
- Slice::Preprocessor icecpp("icecpp", file, cppArgs);
- FILE* cppHandle = icecpp.preprocess(keepComments);
+ Slice::PreprocessorPtr icecpp = Slice::Preprocessor::create("icecpp", file, cppArgs);
+ FILE* cppHandle = icecpp->preprocess(keepComments);
if(cppHandle == 0)
{
@@ -145,7 +145,7 @@ IcePy_loadSlice(PyObject* /*self*/, PyObject* args)
UnitPtr u = Slice::Unit::createUnit(ignoreRedefs, all, ice);
int parseStatus = u->parse(file, cppHandle, debug);
- if(!icecpp.close() || parseStatus == EXIT_FAILURE)
+ if(!icecpp->close() || parseStatus == EXIT_FAILURE)
{
PyErr_Format(PyExc_RuntimeError, "Slice parsing failed for `%s'", cmd);
u->destroy();