diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-12 21:30:33 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-13 01:03:47 -0400 |
commit | 9effdb3aa2bfcad9dc391cbe5a15b9f563505b00 (patch) | |
tree | 6178de0f0e4aec6583466375fc73ef2af533b225 /src/times.cc | |
parent | 9edeb4ba11458374b3a0756710c1e3adc97c28e6 (diff) | |
download | fork-ledger-9effdb3aa2bfcad9dc391cbe5a15b9f563505b00.tar.gz fork-ledger-9effdb3aa2bfcad9dc391cbe5a15b9f563505b00.tar.bz2 fork-ledger-9effdb3aa2bfcad9dc391cbe5a15b9f563505b00.zip |
Option --input-date-format adds to candidate list
Diffstat (limited to 'src/times.cc')
-rw-r--r-- | src/times.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/times.cc b/src/times.cc index 26e1dc21..a9768f4f 100644 --- a/src/times.cc +++ b/src/times.cc @@ -191,7 +191,7 @@ namespace { shared_ptr<datetime_io_t> printed_datetime_io; shared_ptr<date_io_t> printed_date_io; - std::vector<shared_ptr<date_io_t> > readers; + std::deque<shared_ptr<date_io_t> > readers; date_t parse_date_mask_routine(const char * date_str, date_io_t& io, optional_year year, @@ -1533,7 +1533,7 @@ void set_date_format(const char * format) void set_input_date_format(const char * format) { - input_date_io.reset(new date_io_t(format, true)); + readers.push_front(shared_ptr<date_io_t>(new date_io_t(format, true))); } void times_initialize() |