summaryrefslogtreecommitdiff
path: root/times.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-07-26 04:08:55 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-07-26 04:08:55 -0400
commit961b30926b3b9f2b3e9c1a99df3f25fea6b13118 (patch)
treef0f5efcc0b63f337c4838b8aad46dea2cd7926e4 /times.h
parentee396957226e2273bc60ede7192c27038c432f24 (diff)
downloadfork-ledger-961b30926b3b9f2b3e9c1a99df3f25fea6b13118.tar.gz
fork-ledger-961b30926b3b9f2b3e9c1a99df3f25fea6b13118.tar.bz2
fork-ledger-961b30926b3b9f2b3e9c1a99df3f25fea6b13118.zip
--verify works again, but the memory totals at the end still need work.
Diffstat (limited to 'times.h')
-rw-r--r--times.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/times.h b/times.h
index db628d87..df5bd75b 100644
--- a/times.h
+++ b/times.h
@@ -86,6 +86,20 @@ struct interval_t
TRACE_CTOR(interval_t,
"int, int, int, const datetime_t&, const datetime_t&");
}
+ interval_t(const interval_t& other)
+ : years(other.years),
+ months(other.months),
+ days(other.days),
+ hours(other.hours),
+ minutes(other.minutes),
+ seconds(other.seconds),
+
+ begin(other.begin),
+ end(other.end),
+
+ advanced(other.advanced) {
+ TRACE_CTOR(interval_t, "copy");
+ }
interval_t(const string& desc)
: years(0), months(0), days(0),
@@ -149,7 +163,7 @@ extern bool day_before_month;
#if 0
struct intorchar
{
- int ival;
+ int ival;
string sval;
intorchar() : ival(-1) {}