diff options
Diffstat (limited to 'xsd/cxx/tree/stream-extraction-source.cxx')
-rw-r--r-- | xsd/cxx/tree/stream-extraction-source.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/xsd/cxx/tree/stream-extraction-source.cxx b/xsd/cxx/tree/stream-extraction-source.cxx index 1f45042..c777f30 100644 --- a/xsd/cxx/tree/stream-extraction-source.cxx +++ b/xsd/cxx/tree/stream-extraction-source.cxx @@ -477,9 +477,7 @@ namespace CXX traverser.dispatch (a.type ()); } - Boolean def (a.default_ () && !is_qname (a.type ())); - - if (a.optional () && !def) + if (a.optional () && !a.default_ ()) { os << "{" << "bool p;" |