diff options
author | John Wiegley <johnw@newartisans.com> | 2007-05-21 20:45:13 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:39:06 -0400 |
commit | d23ed020abf494a046b499cdce1c0957cd5b4783 (patch) | |
tree | bd9035df62b9ef7cbf77045bb018de8e33270fca /src/traversal | |
parent | fdfc37adf948415b6caad55c08e8313abd4e1b1b (diff) | |
download | fork-ledger-d23ed020abf494a046b499cdce1c0957cd5b4783.tar.gz fork-ledger-d23ed020abf494a046b499cdce1c0957cd5b4783.tar.bz2 fork-ledger-d23ed020abf494a046b499cdce1c0957cd5b4783.zip |
Whitespace cleanup.
Diffstat (limited to 'src/traversal')
-rw-r--r-- | src/traversal/xpath.cc | 2 | ||||
-rw-r--r-- | src/traversal/xpath.h | 8 |
2 files changed, 5 insertions, 5 deletions
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_t&> 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&, ..."); |