summaryrefslogtreecommitdiff
path: root/src/timelog.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-23 19:07:30 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-23 19:07:30 -0400
commit944c63e6f26d1f05ba6f63c60f510d3796872f3e (patch)
treee1fc54319c2c42c16a64e95930acaca063658863 /src/timelog.h
parent057506ab6dddbfb75d1bb29289602f375ca57df5 (diff)
downloadfork-ledger-944c63e6f26d1f05ba6f63c60f510d3796872f3e.tar.gz
fork-ledger-944c63e6f26d1f05ba6f63c60f510d3796872f3e.tar.bz2
fork-ledger-944c63e6f26d1f05ba6f63c60f510d3796872f3e.zip
The Great Renaming, Part II
The last commit did not contain the majority of changes because of a slight mishap. This contains the real changeset.
Diffstat (limited to 'src/timelog.h')
-rw-r--r--src/timelog.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/timelog.h b/src/timelog.h
index 9e69cd65..a704743c 100644
--- a/src/timelog.h
+++ b/src/timelog.h
@@ -55,29 +55,29 @@ namespace ledger {
*
* Long.
*/
-class time_entry_t
+class time_xact_t
{
public:
datetime_t checkin;
account_t * account;
string desc;
- time_entry_t() : account(NULL) {
- TRACE_CTOR(time_entry_t, "");
+ time_xact_t() : account(NULL) {
+ TRACE_CTOR(time_xact_t, "");
}
- time_entry_t(const datetime_t& _checkin,
+ time_xact_t(const datetime_t& _checkin,
account_t * _account = NULL,
const string& _desc = "")
: checkin(_checkin), account(_account), desc(_desc) {
- TRACE_CTOR(time_entry_t, "const datetime_t&, account_t *, const string&");
+ TRACE_CTOR(time_xact_t, "const datetime_t&, account_t *, const string&");
}
- time_entry_t(const time_entry_t& entry)
- : checkin(entry.checkin), account(entry.account),
- desc(entry.desc) {
- TRACE_CTOR(time_entry_t, "copy");
+ time_xact_t(const time_xact_t& xact)
+ : checkin(xact.checkin), account(xact.account),
+ desc(xact.desc) {
+ TRACE_CTOR(time_xact_t, "copy");
}
- ~time_entry_t() throw() {
- TRACE_DTOR(time_entry_t);
+ ~time_xact_t() throw() {
+ TRACE_DTOR(time_xact_t);
}
};
@@ -88,7 +88,7 @@ public:
*/
class time_log_t
{
- std::list<time_entry_t> time_entries;
+ std::list<time_xact_t> time_xacts;
journal_t& journal;
public: