From 9e21f520fb19163eeac2a9b80a4568dabfc29268 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 15 Apr 2010 14:30:56 +0200 Subject: Adjust to changed predicate names --- xsd/cxx/tree/serialization-source.cxx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'xsd/cxx/tree/serialization-source.cxx') diff --git a/xsd/cxx/tree/serialization-source.cxx b/xsd/cxx/tree/serialization-source.cxx index bee3271..40ae031 100644 --- a/xsd/cxx/tree/serialization-source.cxx +++ b/xsd/cxx/tree/serialization-source.cxx @@ -291,7 +291,7 @@ namespace CXX return; String const& aname (eaname (e)); - String ns (e.qualified () ? e.namespace_ ().name () : ""); + String ns (e.qualified_p () ? e.namespace_ ().name () : ""); String type (scope + L"::" + etype (e)); // Check if we need to handle xsi:type and substitution groups. @@ -344,8 +344,8 @@ namespace CXX << "tsm.serialize (" << endl << strlit (e.name ()) << "," << endl << strlit (ns) << "," << endl - << (e.global () ? "true" : "false") << ", " << - (e.qualified () ? "true" : "false") << ", e, *b);"; + << (e.global_p () ? "true" : "false") << ", " << + (e.qualified_p () ? "true" : "false") << ", e, *b);"; } else { @@ -402,8 +402,8 @@ namespace CXX << "tsm.serialize (" << endl << strlit (e.name ()) << "," << endl << strlit (ns) << "," << endl - << (e.global () ? "true" : "false") << ", " << - (e.qualified () ? "true" : "false") << ", e, x);"; + << (e.global_p () ? "true" : "false") << ", " << + (e.qualified_p () ? "true" : "false") << ", e, x);"; } else { @@ -457,8 +457,8 @@ namespace CXX << "tsm.serialize (" << endl << strlit (e.name ()) << "," << endl << strlit (ns) << "," << endl - << (e.global () ? "true" : "false") << ", " << - (e.qualified () ? "true" : "false") << ", e, x);"; + << (e.global_p () ? "true" : "false") << ", " << + (e.qualified_p () ? "true" : "false") << ", e, x);"; } else { @@ -570,12 +570,12 @@ namespace CXX traverse (Type& a) { String const& aname (eaname (a)); - String ns (a.qualified () ? a.namespace_ ().name () : ""); + String ns (a.qualified_p () ? a.namespace_ ().name () : ""); os << "// " << comment (a.name ()) << endl << "//" << endl; - if (a.optional () && !a.default_ ()) + if (a.optional_p () && !a.default_p ()) { os << "if (i." << aname << " ())" << "{" @@ -611,7 +611,7 @@ namespace CXX { // Make sure we serialize required fixed attributes. // - if (a.optional () && + if (a.optional_p () && options.value ()) { os << "if (i." << aname << " () != " << scope << -- cgit v1.1