From 536e3e73228b6168437704ede89499406b87391d Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 12 Jun 2010 22:16:38 -0400 Subject: Added a new scope_value() inline helper function --- src/session.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/session.cc') diff --git a/src/session.cc b/src/session.cc index 34cda5ef..b5441766 100644 --- a/src/session.cc +++ b/src/session.cc @@ -186,11 +186,9 @@ value_t session_t::fn_account(call_scope_t& scope) { interactive_t args(scope, "v"); if (scope[0].is_string()) - return value_t(static_cast - (journal->find_account(args.get(0), false))); + return scope_value(journal->find_account(args.get(0), false)); else if (scope[0].is_mask()) - return value_t(static_cast - (journal->find_account_re(args.get(0).str()))); + return scope_value(journal->find_account_re(args.get(0).str())); else return NULL_VALUE; } -- cgit v1.2.3