diff options
Diffstat (limited to 'cpp/src/slice2xsd/Main.cpp')
-rw-r--r-- | cpp/src/slice2xsd/Main.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/src/slice2xsd/Main.cpp b/cpp/src/slice2xsd/Main.cpp index ee774c30c5a..a7da7b102fc 100644 --- a/cpp/src/slice2xsd/Main.cpp +++ b/cpp/src/slice2xsd/Main.cpp @@ -178,12 +178,12 @@ main(int argc, char* argv[]) return EXIT_FAILURE; } - UnitPtr unit = Unit::createUnit(false, false, ice, caseSensitive); - int parseStatus = unit->parse(cppHandle, debug); + UnitPtr p = Unit::createUnit(false, false, ice, caseSensitive); + int parseStatus = p->parse(cppHandle, debug); if(!icecpp.close()) { - unit->destroy(); + p->destroy(); return EXIT_FAILURE; } @@ -196,13 +196,13 @@ main(int argc, char* argv[]) Gen gen(argv[0], icecpp.getBaseName(), include, includePaths, output); if(!gen) { - unit->destroy(); + p->destroy(); return EXIT_FAILURE; } - gen.generate(unit); + gen.generate(p); } - unit->destroy(); + p->destroy(); } return status; |