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.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xsd/cxx/tree/stream-source.cxx b/xsd/cxx/tree/stream-source.cxx
index 9b17522..e8a7fc4 100644
--- a/xsd/cxx/tree/stream-source.cxx
+++ b/xsd/cxx/tree/stream-source.cxx
@@ -309,7 +309,7 @@ namespace CXX
{
String const& aname (eaname (a));
- if (a.optional () && !a.default_ ())
+ if (a.optional_p () && !a.default_p ())
{
os << "if (i." << aname << " ())"
<< "{"