aboutsummaryrefslogtreecommitdiff
path: root/xsd/cxx/tree/stream-extraction-source.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-01-08 14:49:11 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-01-08 14:49:11 +0200
commit3f8c237b1abe02df8147170f2fc037edc3f384db (patch)
tree2531f2fddd4cadaab27cd37eb37ebcac3481acec /xsd/cxx/tree/stream-extraction-source.cxx
parent0153d99ab976ac88f432099ddfe840e15d4f6a8e (diff)
Add support for default/fixed values of QName type
Diffstat (limited to 'xsd/cxx/tree/stream-extraction-source.cxx')
-rw-r--r--xsd/cxx/tree/stream-extraction-source.cxx4
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;"