From d23ed020abf494a046b499cdce1c0957cd5b4783 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 21 May 2007 20:45:13 +0000 Subject: Whitespace cleanup. --- src/traversal/xpath.cc | 2 +- src/traversal/xpath.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/traversal') diff --git a/src/traversal/xpath.cc b/src/traversal/xpath.cc index ed4c0544..85f25209 100644 --- a/src/traversal/xpath.cc +++ b/src/traversal/xpath.cc @@ -1210,7 +1210,7 @@ value_t xpath_t::op_t::calc(scope_t& scope) case ATTR_NAME: if (optional value = kind == ATTR_ID ? current_xml_node(scope).get_attr(as_name()) : - current_xml_node(scope).get_attr(as_string())) + current_xml_node(scope).get_attr(as_string())) return *value; break; diff --git a/src/traversal/xpath.h b/src/traversal/xpath.h index c9f299fc..26a887a1 100644 --- a/src/traversal/xpath.h +++ b/src/traversal/xpath.h @@ -83,9 +83,9 @@ public: } virtual void define(const string& name, ptr_op_t def) = 0; - void define(const string& name, const value_t& val); + void define(const string& name, const value_t& val); virtual ptr_op_t lookup(const string& name) = 0; - value_t resolve(const string& name) { + value_t resolve(const string& name) { return lookup(name)->calc(*this); } @@ -175,7 +175,7 @@ public: } virtual void define(const string& name, ptr_op_t def); - void define(const string& name, const value_t& val) { + void define(const string& name, const value_t& val) { scope_t::define(name, val); } virtual ptr_op_t lookup(const string& name); @@ -232,7 +232,7 @@ public: const value_t& _element = NULL_VALUE, const std::size_t _element_index = 0, const std::size_t _sequence_size = 0) - : child_scope_t(_parent, CONTEXT_SCOPE), current_element(_element), + : child_scope_t(_parent, CONTEXT_SCOPE), current_element(_element), element_index(_element_index), sequence_size(_sequence_size) { TRACE_CTOR(xpath_t::context_scope_t, "scope_t&, const value_t&, ..."); -- cgit v1.2.3