diff options
Diffstat (limited to 'xsd/libxsd/xsd/cxx/tree/type-serializer-map.txx')
-rw-r--r-- | xsd/libxsd/xsd/cxx/tree/type-serializer-map.txx | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/xsd/libxsd/xsd/cxx/tree/type-serializer-map.txx b/xsd/libxsd/xsd/cxx/tree/type-serializer-map.txx index 859331f..44a2204 100644 --- a/xsd/libxsd/xsd/cxx/tree/type-serializer-map.txx +++ b/xsd/libxsd/xsd/cxx/tree/type-serializer-map.txx @@ -1,6 +1,5 @@ // file : xsd/cxx/tree/type-serializer-map.txx -// author : Boris Kolpackov <boris@codesynthesis.com> -// copyright : Copyright (c) 2005-2010 Code Synthesis Tools CC +// copyright : Copyright (c) 2005-2014 Code Synthesis Tools CC // license : GNU GPL v2 + exceptions; see accompanying LICENSE file #include <xercesc/util/XMLUni.hpp> @@ -12,8 +11,6 @@ #include <xsd/cxx/tree/types.hxx> #include <xsd/cxx/tree/bits/literals.hxx> -#include <iostream> - namespace xsd { namespace cxx @@ -39,7 +36,7 @@ namespace xsd &serializer_impl<type>, false); - typedef simple_type<type> simple_type; + typedef simple_type<C, type> simple_type; register_type ( typeid (simple_type), qualified_name (bits::any_simple_type<C> (), xsd), @@ -255,9 +252,9 @@ namespace xsd register_type (const type_id& tid, const qualified_name& name, serializer s, - bool override) + bool replace) { - if (override || type_map_.find (&tid) == type_map_.end ()) + if (replace || type_map_.find (&tid) == type_map_.end ()) type_map_[&tid] = type_info (name, s); } @@ -399,7 +396,7 @@ namespace xsd } template <typename C> - xml::dom::auto_ptr<xercesc::DOMDocument> type_serializer_map<C>:: + XSD_DOM_AUTO_PTR<xercesc::DOMDocument> type_serializer_map<C>:: serialize (const C* name, const C* ns, const xml::dom::namespace_infomap<C>& m, |