summaryrefslogtreecommitdiff
path: root/src/xml.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-07 10:27:21 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:39 -0400
commitd8498372037a4d0c272547ae48046b2182bcd4b1 (patch)
treeea3f228c5b6b20d71456e47a418e383669925d5f /src/xml.cc
parenta71d48881e538630aa1d147d58365da84e6db91f (diff)
downloadfork-ledger-d8498372037a4d0c272547ae48046b2182bcd4b1.tar.gz
fork-ledger-d8498372037a4d0c272547ae48046b2182bcd4b1.tar.bz2
fork-ledger-d8498372037a4d0c272547ae48046b2182bcd4b1.zip
Major restructuring of the value_t class.
Diffstat (limited to 'src/xml.cc')
-rw-r--r--src/xml.cc11
1 files changed, 6 insertions, 5 deletions
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<names_map::iterator, bool> 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<node_t::attrs_map::iterator, bool> 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);
}
}