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/convert.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/convert.cc') diff --git a/src/convert.cc b/src/convert.cc index f33a6b2e..d7ee52b7 100644 --- a/src/convert.cc +++ b/src/convert.cc @@ -34,7 +34,6 @@ #include "convert.h" #include "csv.h" #include "scope.h" -#include "interactive.h" #include "iterators.h" #include "report.h" #include "xact.h" @@ -43,11 +42,10 @@ namespace ledger { -value_t convert_command(call_scope_t& scope) +value_t convert_command(call_scope_t& args) { - interactive_t args(scope, "s"); - report_t& report(find_scope(scope)); - journal_t& journal(*report.session.journal.get()); + report_t& report(args.context()); + journal_t& journal(*report.session.journal.get()); string bucket_name; if (report.HANDLED(account_)) -- cgit v1.2.3