summaryrefslogtreecommitdiff
path: root/src/times.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-14 04:27:15 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-14 04:27:15 -0400
commit388044dec99a9ed27bfdefe3c07234e4b27b3997 (patch)
treefc4e843d00db6ed859de565333d55b471f7c0334 /src/times.h
parente50abb56455791774bf75e786234e8d2a637d63a (diff)
downloadfork-ledger-388044dec99a9ed27bfdefe3c07234e4b27b3997.tar.gz
fork-ledger-388044dec99a9ed27bfdefe3c07234e4b27b3997.tar.bz2
fork-ledger-388044dec99a9ed27bfdefe3c07234e4b27b3997.zip
Fixed the way interval_t objects are initialized
Diffstat (limited to 'src/times.h')
-rw-r--r--src/times.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/times.h b/src/times.h
index 2d47d60b..54c1dc80 100644
--- a/src/times.h
+++ b/src/times.h
@@ -162,10 +162,10 @@ struct interval_t
}
void set_start(const date_t& moment) {
- begin = moment;
+ begin = first(moment);
}
- date_t first(const optional<date_t>& moment = none) const;
+ date_t first(const optional<date_t>& moment = none);
date_t increment(const date_t&) const;
void parse(std::istream& in);