diff options
author | John Wiegley <johnw@newartisans.com> | 2007-05-02 04:44:03 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:36 -0400 |
commit | c676527270e2e5b23de0e4b99e85010c76eb72b0 (patch) | |
tree | 75c9ed44c62396b040c67ccf551d4671c91216e7 /src/xml.cc | |
parent | fd1d109b29ce4a87acb33c0c01d6984f569e46b9 (diff) | |
download | fork-ledger-c676527270e2e5b23de0e4b99e85010c76eb72b0.tar.gz fork-ledger-c676527270e2e5b23de0e4b99e85010c76eb72b0.tar.bz2 fork-ledger-c676527270e2e5b23de0e4b99e85010c76eb72b0.zip |
Added missing curly braces.
Diffstat (limited to 'src/xml.cc')
-rw-r--r-- | src/xml.cc | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -463,9 +463,9 @@ node_t * entry_node_t::children() const node_t * entry_node_t::lookup_child(int _name_id) const { switch (_name_id) { - case document_t::CODE: + case document_t::CODE: { if (! entry->code) - return NULL; + break; // jww (2007-04-20): I have to save this and then delete it later terminal_node_t * code_node = @@ -473,8 +473,9 @@ node_t * entry_node_t::lookup_child(int _name_id) const code_node->set_name(document_t::CODE); code_node->set_text(*entry->code); return code_node; + } - case document_t::PAYEE: + case document_t::PAYEE: { // jww (2007-04-20): I have to save this and then delete it later terminal_node_t * payee_node = new terminal_node_t(document, const_cast<entry_node_t *>(this)); @@ -482,6 +483,7 @@ node_t * entry_node_t::lookup_child(int _name_id) const payee_node->set_text(entry->payee); return payee_node; } + } return NULL; } |