diff options
author | John Wiegley <johnw@newartisans.com> | 2009-03-16 04:02:56 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-03-16 04:02:56 -0400 |
commit | d0ea10f9a709de8f67b4c4eb1e763ab32309957f (patch) | |
tree | 4e968c574a1c84bbf23493b57bfe61e4ac852cf7 /src/xact.h | |
parent | 63080a727540e5168d6eb230e86d06ad390dc6c5 (diff) | |
parent | f1523b5464924bf9d9987fce0cb3dbe4acda5a4b (diff) | |
download | fork-ledger-d0ea10f9a709de8f67b4c4eb1e763ab32309957f.tar.gz fork-ledger-d0ea10f9a709de8f67b4c4eb1e763ab32309957f.tar.bz2 fork-ledger-d0ea10f9a709de8f67b4c4eb1e763ab32309957f.zip |
Rewrote the interval_t class
The purpose of this rewrite is to greatly simplify the code that walks
through time periods, toward opening up the possibility in future of
allowing exclusions and logically combined periods, such as "weekly
except weekends". The new code is much simpler to use, as well as
simpler internally, and yet is more robust at the same time.
Diffstat (limited to 'src/xact.h')
-rw-r--r-- | src/xact.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -186,8 +186,8 @@ struct auto_xact_finalizer_t : public xact_finalizer_t class period_xact_t : public xact_base_t { public: - interval_t period; - string period_string; + date_interval_t period; + string period_string; period_xact_t() { TRACE_CTOR(period_xact_t, ""); @@ -206,7 +206,7 @@ class period_xact_t : public xact_base_t } virtual bool valid() const { - return period; + return period.is_valid(); } }; |