From ea1642b3f969463a49e5a671478c92e4ef129665 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 13 Jun 2010 05:02:14 -0400 Subject: Completely reworked argument passing in expressions --- src/session.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/session.cc') diff --git a/src/session.cc b/src/session.cc index b5441766..df6eaf7d 100644 --- a/src/session.cc +++ b/src/session.cc @@ -182,12 +182,11 @@ void session_t::close_journal_files() amount_t::initialize(); } -value_t session_t::fn_account(call_scope_t& scope) +value_t session_t::fn_account(call_scope_t& args) { - interactive_t args(scope, "v"); - if (scope[0].is_string()) + if (args[0].is_string()) return scope_value(journal->find_account(args.get(0), false)); - else if (scope[0].is_mask()) + else if (args[0].is_mask()) return scope_value(journal->find_account_re(args.get(0).str())); else return NULL_VALUE; -- cgit v1.2.3