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/data/node.h | |
parent | fdfc37adf948415b6caad55c08e8313abd4e1b1b (diff) | |
download | fork-ledger-d23ed020abf494a046b499cdce1c0957cd5b4783.tar.gz fork-ledger-d23ed020abf494a046b499cdce1c0957cd5b4783.tar.bz2 fork-ledger-d23ed020abf494a046b499cdce1c0957cd5b4783.zip |
Whitespace cleanup.
Diffstat (limited to 'src/data/node.h')
-rw-r--r-- | src/data/node.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/data/node.h b/src/data/node.h index b0324ca0..36964bdf 100644 --- a/src/data/node.h +++ b/src/data/node.h @@ -106,10 +106,10 @@ public: if (! is_parent_node()) throw_(std::logic_error, "Request to cast leaf node to a parent node"); return downcast<parent_node_t>(*this); - } + } const parent_node_t& as_parent_node() const { return const_cast<node_t *>(this)->as_parent_node(); - } + } bool is_terminal_node() const { return ! has_flags(XML_NODE_IS_PARENT); @@ -118,10 +118,10 @@ public: if (! is_terminal_node()) throw_(std::logic_error, "Request to cast parent node to a leaf node"); return downcast<terminal_node_t>(*this); - } + } const terminal_node_t& as_terminal_node() const { return const_cast<node_t *>(this)->as_terminal_node(); - } + } virtual value_t to_value() const = 0; virtual void print(std::ostream& out) const = 0; |