From c2d38a4c6abd15c898492f09b4646eb93a01da69 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 9 May 2012 17:25:13 +0200 Subject: Update to match new libxsd-frontend interface --- xsde/xsde.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/xsde/xsde.cxx b/xsde/xsde.cxx index 1220da9..a14eb94 100644 --- a/xsde/xsde.cxx +++ b/xsde/xsde.cxx @@ -3,6 +3,8 @@ // copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC // license : GNU GPL v2 + exceptions; see accompanying LICENSE file +#include +#include // std::auto_ptr #include #include @@ -50,9 +52,7 @@ typedef Cult::Containers::Vector NarrowStrings; namespace SemanticGraph = XSDFrontend::SemanticGraph; namespace Transformations = XSDFrontend::Transformations; -using std::wcerr; -using std::wcout; -using std::endl; +using namespace std; namespace CLI { @@ -647,7 +647,7 @@ main (Int argc, Char* argv[]) loc_translator, disabled_w); - Evptr schema; + auto_ptr schema; try { @@ -1112,7 +1112,7 @@ main (Int argc, Char* argv[]) loc_translator, disabled_w); - Evptr schema (parser.parse (paths)); + auto_ptr schema (parser.parse (paths)); // Morph anonymous types. // @@ -1177,7 +1177,7 @@ main (Int argc, Char* argv[]) // Rearrange the graph so that each type is in a seperate // schema file. // - typedef Cult::Containers::Vector Schemas; + typedef std::vector Schemas; SchemaPerTypeTranslator type_translator ( common_ops.value (), @@ -1194,7 +1194,7 @@ main (Int argc, Char* argv[]) // Generate code. // - for (Schemas::Iterator b (schemas.begin ()), i (b), e (schemas.end ()); + for (Schemas::iterator b (schemas.begin ()), i (b), e (schemas.end ()); i != e; ++i) { SemanticGraph::Schema& s (**i); -- cgit v1.1