diff options
| author | John Wiegley <johnw@newartisans.com> | 2008-07-31 17:48:29 -0400 |
|---|---|---|
| committer | John Wiegley <johnw@newartisans.com> | 2008-07-31 17:48:29 -0400 |
| commit | e5048ec71bf114c351c62844b7603893195df4d4 (patch) | |
| tree | 4153105f62fc6a244811df3c2e34366344c25792 /emacs.cc | |
| parent | 99313ebc6c3779f692f9f1bd70cc69a236f5eb78 (diff) | |
| download | ledger-e5048ec71bf114c351c62844b7603893195df4d4.tar.gz ledger-e5048ec71bf114c351c62844b7603893195df4d4.tar.bz2 ledger-e5048ec71bf114c351c62844b7603893195df4d4.zip | |
Change many uses of for+iterator to use Boost.Foreach.
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; } |
