diff options
author | John Wiegley <johnw@newartisans.com> | 2009-03-03 13:53:12 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-03-03 13:53:12 -0400 |
commit | 79acfc16474db9ce9cf47157b315cf418ae67c73 (patch) | |
tree | ee384a23e44171f5596b79715294a7d683c48c56 /src | |
parent | 478998b4e9f5ce3b73361c9acca73a2222354942 (diff) | |
download | ledger-79acfc16474db9ce9cf47157b315cf418ae67c73.tar.gz ledger-79acfc16474db9ce9cf47157b315cf418ae67c73.tar.bz2 ledger-79acfc16474db9ce9cf47157b315cf418ae67c73.zip |
Moved fn_false to be a non-member function
Diffstat (limited to 'src')
-rw-r--r-- | src/report.cc | 5 | ||||
-rw-r--r-- | src/report.h | 3 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/report.cc b/src/report.cc index 708ee39a..ba9056ab 100644 --- a/src/report.cc +++ b/src/report.cc @@ -305,6 +305,9 @@ value_t report_t::fn_ansify_if(call_scope_t& scope) } namespace { + value_t fn_false(call_scope_t&) { + return false; + } value_t fn_null(call_scope_t&) { return NULL_VALUE; } @@ -773,7 +776,7 @@ expr_t::ptr_op_t report_t::lookup(const string& name) } } else if (is_eq(p, "post")) - return MAKE_FUNCTOR(report_t::fn_false); + return WRAP_FUNCTOR(fn_false); break; case 'q': diff --git a/src/report.h b/src/report.h index 951c8873..72f0af57 100644 --- a/src/report.h +++ b/src/report.h @@ -147,9 +147,6 @@ public: value_t fn_join(call_scope_t& scope); value_t fn_format_date(call_scope_t& scope); value_t fn_ansify_if(call_scope_t& scope); - value_t fn_false(call_scope_t&) { - return false; - } value_t fn_options(call_scope_t&) { return value_t(static_cast<scope_t *>(this)); |