diff options
author | John Wiegley <johnw@newartisans.com> | 2007-05-16 05:38:01 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:52 -0400 |
commit | 8cdc8008c36bd03e44e43aef3fc84ff20df7bd34 (patch) | |
tree | b4efb59a6c41d22cbc7e651f8ce215e38e95bfc4 /src/report.h | |
parent | 8a2b87e6e1f5cd8784130f3cfcd1911b214c55cc (diff) | |
download | fork-ledger-8cdc8008c36bd03e44e43aef3fc84ff20df7bd34.tar.gz fork-ledger-8cdc8008c36bd03e44e43aef3fc84ff20df7bd34.tar.bz2 fork-ledger-8cdc8008c36bd03e44e43aef3fc84ff20df7bd34.zip |
Corrected problem with uninitialized value_t's.
Diffstat (limited to 'src/report.h')
-rw-r--r-- | src/report.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/report.h b/src/report.h index bf43e927..bf146eaf 100644 --- a/src/report.h +++ b/src/report.h @@ -94,28 +94,35 @@ class report_t : public xml::xpath_t::scope_t } value_t option_eval(xml::xpath_t::scope_t * locals) { eval(locals->args[0].as_string()); + return NULL_VALUE; } value_t option_amount(xml::xpath_t::scope_t * locals) { eval(string("t=") + locals->args[0].as_string()); + return NULL_VALUE; } value_t option_total(xml::xpath_t::scope_t * locals) { eval(string("T()=") + locals->args[0].as_string()); + return NULL_VALUE; } value_t option_format(xml::xpath_t::scope_t * locals) { format_string = locals->args[0].as_string(); + return NULL_VALUE; } value_t option_raw(xml::xpath_t::scope_t * locals) { raw_mode = true; + return NULL_VALUE; } value_t option_foo(xml::xpath_t::scope_t * locals) { std::cout << "This is foo" << std::endl; + return NULL_VALUE; } value_t option_bar(xml::xpath_t::scope_t * locals) { std::cout << "This is bar: " << locals->args[0] << std::endl; + return NULL_VALUE; } // @@ -125,35 +132,44 @@ class report_t : public xml::xpath_t::scope_t #if 0 value_t option_select(xml::xpath_t::scope_t * locals) { transforms.push_back(new select_transform(locals->args[0].as_string())); + return NULL_VALUE; } value_t option_limit(xml::xpath_t::scope_t * locals) { string expr = (string("//xact[") + locals->args[0].as_string() + "]"); transforms.push_back(new select_transform(expr)); + return NULL_VALUE; } value_t option_remove(xml::xpath_t::scope_t * locals) { transforms.push_back(new remove_transform(locals->args[0].as_string())); + return NULL_VALUE; } value_t option_accounts(xml::xpath_t::scope_t * locals) { transforms.push_back(new accounts_transform); + return NULL_VALUE; } value_t option_compact(xml::xpath_t::scope_t * locals) { transforms.push_back(new compact_transform); + return NULL_VALUE; } value_t option_clean(xml::xpath_t::scope_t * locals) { transforms.push_back(new clean_transform); + return NULL_VALUE; } value_t option_entries(xml::xpath_t::scope_t * locals) { transforms.push_back(new entries_transform); + return NULL_VALUE; } value_t option_split(xml::xpath_t::scope_t * locals) { transforms.push_back(new split_transform); + return NULL_VALUE; } value_t option_merge(xml::xpath_t::scope_t * locals) { transforms.push_back(new merge_transform); + return NULL_VALUE; } #endif |