From 4d3692a500bd5cf2bd500e1eb0632850ca8260ab Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 2 Jun 2011 04:27:02 +0200 Subject: Do not store flags in containers --- libxsd/xsd/cxx/tree/containers.txx | 42 +++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'libxsd/xsd/cxx/tree/containers.txx') diff --git a/libxsd/xsd/cxx/tree/containers.txx b/libxsd/xsd/cxx/tree/containers.txx index 8c40e94..a27af48 100644 --- a/libxsd/xsd/cxx/tree/containers.txx +++ b/libxsd/xsd/cxx/tree/containers.txx @@ -23,23 +23,23 @@ namespace xsd template one:: - one (flags f, container* c) - : x_ (0), flags_ (f), container_ (c) + one (container* c) + : x_ (0), container_ (c) { } template one:: - one (const T& x, flags f, container* c) - : x_ (0), flags_ (f), container_ (c) + one (const T& x, container* c) + : x_ (0), container_ (c) { set (x); } template one:: - one (std::auto_ptr x, flags f, container* c) - : x_ (0), flags_ (f), container_ (c) + one (std::auto_ptr x, container* c) + : x_ (0), container_ (c) { set (x); } @@ -47,10 +47,10 @@ namespace xsd template one:: one (const one& x, flags f, container* c) - : x_ (0), flags_ (f), container_ (c) + : x_ (0), container_ (c) { if (x.present ()) - set (x.get ()); + set (x.get (), f); } template @@ -73,12 +73,12 @@ namespace xsd template void one:: - set (const T& x) + set (const T& x, flags f) { // We always do a fresh copy because T may not be x's // dynamic type. // - T* r (x._clone (flags_, container_)); + T* r (x._clone (f, container_)); delete x_; x_ = r; @@ -113,23 +113,23 @@ namespace xsd template optional:: - optional (flags f, container* c) - : x_ (0), flags_ (f), container_ (c) + optional (container* c) + : x_ (0), container_ (c) { } template optional:: - optional (const T& x, flags f, container* c) - : x_ (0), flags_ (f), container_ (c) + optional (const T& x, container* c) + : x_ (0), container_ (c) { set (x); } template optional:: - optional (std::auto_ptr x, flags f, container* c) - : x_ (0), flags_ (f), container_ (c) + optional (std::auto_ptr x, container* c) + : x_ (0), container_ (c) { set (x); } @@ -137,10 +137,10 @@ namespace xsd template optional:: optional (const optional& x, flags f, container* c) - : x_ (0), flags_ (f), container_ (c) + : x_ (0), container_ (c) { if (x) - set (*x); + set (*x, f); } template @@ -172,12 +172,12 @@ namespace xsd template void optional:: - set (const T& x) + set (const T& x, flags f) { // We always do a fresh copy because T may not be x's // dynamic type. // - T* r (x._clone (flags_, container_)); + T* r (x._clone (f, container_)); delete x_; x_ = r; @@ -220,7 +220,7 @@ namespace xsd // template optional:: - optional (const T& y, flags, container*) + optional (const T& y, container*) : present_ (false) { set (y); -- cgit v1.1