summaryrefslogtreecommitdiff
path: root/xsd/cxx/tree/stream-source.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xsd/cxx/tree/stream-source.cxx')
-rw-r--r--xsd/cxx/tree/stream-source.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/xsd/cxx/tree/stream-source.cxx b/xsd/cxx/tree/stream-source.cxx
index 6518b52..a93d49e 100644
--- a/xsd/cxx/tree/stream-source.cxx
+++ b/xsd/cxx/tree/stream-source.cxx
@@ -317,9 +317,7 @@ namespace CXX
{
String const& aname (eaname (a));
- Boolean def (a.default_ () && !is_qname (a.type ()));
-
- if (a.optional () && !def)
+ if (a.optional () && !a.default_ ())
{
os << "if (i." << aname << " ())"
<< "{"