summaryrefslogtreecommitdiff
path: root/src/timelog.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-01 03:31:28 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-03-01 03:31:28 -0600
commit944e580825f0d9ce060b6dcdffe8990b6c2cca20 (patch)
treee2651b0df622d9b8d3831f35743e7dbd31c16897 /src/timelog.h
parente2afc783db0dff1927b00dc506390353d9e3bbd2 (diff)
downloadfork-ledger-944e580825f0d9ce060b6dcdffe8990b6c2cca20.tar.gz
fork-ledger-944e580825f0d9ce060b6dcdffe8990b6c2cca20.tar.bz2
fork-ledger-944e580825f0d9ce060b6dcdffe8990b6c2cca20.zip
Refactored the notion of "the current parsing context"
Diffstat (limited to 'src/timelog.h')
-rw-r--r--src/timelog.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/timelog.h b/src/timelog.h
index 12083302..ed5a2d36 100644
--- a/src/timelog.h
+++ b/src/timelog.h
@@ -50,6 +50,7 @@ namespace ledger {
class account_t;
class journal_t;
+class parse_context_t;
class time_xact_t
{
@@ -86,15 +87,11 @@ public:
class time_log_t : public boost::noncopyable
{
std::list<time_xact_t> time_xacts;
- journal_t& journal;
- scope_t& scope;
+ parse_context_t& context;
public:
- std::size_t * context_count;
-
- time_log_t(journal_t& _journal, scope_t& _scope)
- : journal(_journal), scope(_scope), context_count(NULL) {
- TRACE_CTOR(time_log_t, "journal_t&, scope_t&, std::size&");
+ time_log_t(parse_context_t& _context) : context(_context) {
+ TRACE_CTOR(time_log_t, "parse_context_t&");
}
~time_log_t() {
TRACE_DTOR(time_log_t);