diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-04-15 14:30:56 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-04-15 14:30:56 +0200 |
commit | 9e21f520fb19163eeac2a9b80a4568dabfc29268 (patch) | |
tree | 50e27bcaaf0807bd29a845485732159aa684971f /xsd/cxx/tree/serialization-source.cxx | |
parent | ea95e3637288a1369ac96011d0cec9feeead05f2 (diff) |
Adjust to changed predicate names
Diffstat (limited to 'xsd/cxx/tree/serialization-source.cxx')
-rw-r--r-- | xsd/cxx/tree/serialization-source.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
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<CLI::omit_default_attributes> ()) { os << "if (i." << aname << " () != " << scope << |