summaryrefslogtreecommitdiff
path: root/textual.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-04-20 02:13:48 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:28 -0400
commit539370ff1b37772e9f11439f652ffd3583beeedb (patch)
tree69e8b0a0aee571d7335eae4c6693829745de1484 /textual.cc
parent0a6b5726ec3bf402a953ea8a03b98ecbf4b90b0c (diff)
downloadfork-ledger-539370ff1b37772e9f11439f652ffd3583beeedb.tar.gz
fork-ledger-539370ff1b37772e9f11439f652ffd3583beeedb.tar.bz2
fork-ledger-539370ff1b37772e9f11439f652ffd3583beeedb.zip
More refactoring
Diffstat (limited to 'textual.cc')
-rw-r--r--textual.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/textual.cc b/textual.cc
index 647e010d..780a719d 100644
--- a/textual.cc
+++ b/textual.cc
@@ -30,7 +30,7 @@ static std::list<std::pair<std::string, int> > include_stack;
#ifdef TIMELOG_SUPPORT
struct time_entry_t {
- ptime checkin;
+ moment_t checkin;
account_t * account;
std::string desc;
};
@@ -494,7 +494,7 @@ bool textual_parser_t::test(std::istream& in) const
return true;
}
-static void clock_out_from_timelog(const ptime& when,
+static void clock_out_from_timelog(const moment_t& when,
account_t * account,
const char * desc,
journal_t * journal)
@@ -678,7 +678,7 @@ unsigned int textual_parser_t::parse(std::istream& in,
std::string date_field = date_field_ptr;
char * symbol_and_price;
- ptime datetime;
+ moment_t datetime;
if (std::isdigit(time_field_ptr[0])) {
symbol_and_price = next_element(time_field_ptr);