diff options
Diffstat (limited to 'emacs.cc')
-rw-r--r-- | emacs.cc | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -5,11 +5,9 @@ namespace ledger { void format_emacs_xacts::write_entry(entry_t& entry) { int idx = entry.src_idx; - for (paths_list::const_iterator i = entry.journal->sources.begin(); - i != entry.journal->sources.end(); - i++) + foreach (const path& path, entry.journal->sources) if (! idx--) { - out << "\"" << *i << "\" "; + out << "\"" << path << "\" "; break; } |