summaryrefslogtreecommitdiff
path: root/xsd/cxx/tree/name-processor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xsd/cxx/tree/name-processor.cxx')
-rw-r--r--xsd/cxx/tree/name-processor.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/xsd/cxx/tree/name-processor.cxx b/xsd/cxx/tree/name-processor.cxx
index 7732162..c90433f 100644
--- a/xsd/cxx/tree/name-processor.cxx
+++ b/xsd/cxx/tree/name-processor.cxx
@@ -674,8 +674,7 @@ namespace CXX
String const& b (m.context ().get<String> ("name"));
Boolean def_attr (m.default_ () &&
- m.is_a<SemanticGraph::Attribute> () &&
- !Tree::Context::is_qname (m.type ()));
+ m.is_a<SemanticGraph::Attribute> ());
// Accessors/modifiers. Note that we postpone inserting the
// names into the name_set to avoid over-escaping.
@@ -799,7 +798,7 @@ namespace CXX
// Default value.
//
- if (m.default_ () && !Tree::Context::is_qname (m.type ()))
+ if (m.default_ ())
{
Boolean simple (true);