Revert "Use an std::set instead of an std::list to store the the journal file paths"
This reverts commit 3364850cc7.
Fixes #559
This commit is contained in:
parent
ef0e1f543c
commit
dfd807f3a4
2 changed files with 4 additions and 4 deletions
|
|
@ -76,7 +76,7 @@ std::size_t session_t::read_data(const string& master_account)
|
|||
file = path(home_var) / ".ledger";
|
||||
|
||||
if (! file.empty() && exists(file))
|
||||
HANDLER(file_).data_files.insert(file);
|
||||
HANDLER(file_).data_files.push_back(file);
|
||||
else
|
||||
throw_(parse_error, "No journal file was specified (please use -f)");
|
||||
|
||||
|
|
@ -214,7 +214,7 @@ journal_t * session_t::read_journal_files()
|
|||
journal_t * session_t::read_journal(const path& pathname)
|
||||
{
|
||||
HANDLER(file_).data_files.clear();
|
||||
HANDLER(file_).data_files.insert(pathname);
|
||||
HANDLER(file_).data_files.push_back(pathname);
|
||||
|
||||
return read_journal_files();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -153,14 +153,14 @@ public:
|
|||
|
||||
OPTION__
|
||||
(session_t, file_, // -f
|
||||
std::set<path COMMA ComparePaths> data_files;
|
||||
std::list<path> data_files;
|
||||
CTOR(session_t, file_) {}
|
||||
DO_(str) {
|
||||
if (parent->flush_on_next_data_file) {
|
||||
data_files.clear();
|
||||
parent->flush_on_next_data_file = false;
|
||||
}
|
||||
data_files.insert(str);
|
||||
data_files.push_back(str);
|
||||
});
|
||||
|
||||
OPTION_(session_t, input_date_format_, DO_(str) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue