diff options
author | John Wiegley <johnw@newartisans.com> | 2008-08-16 04:25:02 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-08-16 04:25:02 -0400 |
commit | 0259ee32c8b708b2614d326b8f173d40677cc643 (patch) | |
tree | 4a53b3b7446d728341c01ec14d9c70752f510d2a /src/session.h | |
parent | 0fd9c2536122a8095b44506a6362bf4a14ef05fc (diff) | |
download | fork-ledger-0259ee32c8b708b2614d326b8f173d40677cc643.tar.gz fork-ledger-0259ee32c8b708b2614d326b8f173d40677cc643.tar.bz2 fork-ledger-0259ee32c8b708b2614d326b8f173d40677cc643.zip |
Added a session_t::clean_all method, for clearing all xdata within a session.
Diffstat (limited to 'src/session.h')
-rw-r--r-- | src/session.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/session.h b/src/session.h index 5d8054d4..1073ca8f 100644 --- a/src/session.h +++ b/src/session.h @@ -167,6 +167,11 @@ public: void clean_xacts(); void clean_xacts(entry_t& entry); + void clean_all() { + clear_xacts(); + clear_accounts(); + } + // // Scope members // |