From d8498372037a4d0c272547ae48046b2182bcd4b1 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 7 May 2007 10:27:21 +0000 Subject: Major restructuring of the value_t class. --- src/xml.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/xml.cc') diff --git a/src/xml.cc b/src/xml.cc index 90ddb1f7..219a0162 100644 --- a/src/xml.cc +++ b/src/xml.cc @@ -82,7 +82,7 @@ int document_t::register_name(const string& name) DEBUG("xml.lookup", this << " Inserting name: " << names.back()); std::pair result = - names_index.insert(names_pair(names.back(), index)); + names_index.insert(names_map::value_type(names.back(), index)); assert(result.second); return index + 1000; @@ -160,9 +160,9 @@ document_t * node_t::document; #endif node_t::node_t(document_t * _document, parent_node_t * _parent, - unsigned int _flags) - : name_id(0), parent(_parent), next(NULL), prev(NULL), - flags(_flags), attrs(NULL) + flags_t _flags) + : supports_flags<>(_flags), + name_id(0), parent(_parent), next(NULL), prev(NULL), attrs(NULL) { TRACE_CTOR(node_t, "document_t *, node_t *"); document = _document; @@ -316,7 +316,8 @@ static void startElement(void *userData, const char *name, const char **attrs) parser->pending_attrs = new node_t::attrs_map; std::pair result - = parser->pending_attrs->insert(node_t::attrs_pair(*p, *(p + 1))); + = parser->pending_attrs->insert + (node_t::attrs_map::value_type(*p, *(p + 1))); assert(result.second); } } -- cgit v1.2.3