summaryrefslogtreecommitdiff
path: root/src/session.h
diff options
context:
space:
mode:
authorJohannes Loher <johannes.loher@fg4f.de>2017-12-29 03:23:10 +0100
committerJohannes Loher <johannes.loher@fg4f.de>2017-12-29 03:23:10 +0100
commit3364850cc7cf73fc67af1ea6cd9a65a32e336623 (patch)
tree95a5b5929750fd3d66acba2f54dea4511deb7262 /src/session.h
parent77ae14230b0ce38cc2c7fee401d7b6aeb2610191 (diff)
downloadfork-ledger-3364850cc7cf73fc67af1ea6cd9a65a32e336623.tar.gz
fork-ledger-3364850cc7cf73fc67af1ea6cd9a65a32e336623.tar.bz2
fork-ledger-3364850cc7cf73fc67af1ea6cd9a65a32e336623.zip
Use an std::set instead of an std::list to store the the journal file paths
Diffstat (limited to 'src/session.h')
-rw-r--r--src/session.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/session.h b/src/session.h
index bb9c5f7e..82d9981f 100644
--- a/src/session.h
+++ b/src/session.h
@@ -143,14 +143,14 @@ public:
OPTION__
(session_t, file_, // -f
- std::list<path> data_files;
+ std::set<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.push_back(str);
+ data_files.insert(str);
});
OPTION_(session_t, input_date_format_, DO_(str) {