aboutsummaryrefslogtreecommitdiff
path: root/xsd/cxx/tree/tree-inline.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-12-01 11:05:10 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-12-01 11:05:10 +0200
commit899728d08993676b01e722a28f60efb2d076534d (patch)
treeb7ad14010ad75bdc08ed3b9e4e4fe6a5f6371b4f /xsd/cxx/tree/tree-inline.cxx
parent238774bc0a8a1c07d5fec89135a766a3e3d8494d (diff)
Make the list type a container for its elements
Diffstat (limited to 'xsd/cxx/tree/tree-inline.cxx')
-rw-r--r--xsd/cxx/tree/tree-inline.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/xsd/cxx/tree/tree-inline.cxx b/xsd/cxx/tree/tree-inline.cxx
index 5bec713..0b834af 100644
--- a/xsd/cxx/tree/tree-inline.cxx
+++ b/xsd/cxx/tree/tree-inline.cxx
@@ -52,7 +52,8 @@ namespace CXX
//
os << inl
<< name << "::" << endl
- << name << " ()"
+ << name << " ()" << endl
+ << ": " << base_type << " (0, this)"
<< "{"
<< "}";
@@ -66,7 +67,7 @@ namespace CXX
<< name << "::" << endl
<< name << " (" << size_type << " n, const " << item_name <<
"& x)" << endl
- << ": " << base_type << " (n, x)"
+ << ": " << base_type << " (n, x, this)"
<< "{"
<< "}";
@@ -78,7 +79,7 @@ namespace CXX
<< flags_type << " f," << endl
<< container << "* c)" << endl
<< ": " << any_simple_type << " (o, f, c)," << endl
- << " " << base_type << " (o, f, c)"
+ << " " << base_type << " (o, f, this)"
<< "{"
<< "}";
}