diff options
author | John Wiegley <johnw@newartisans.com> | 2012-02-10 20:09:11 -1000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-02-17 15:09:32 -0600 |
commit | 68fa8600ee90a5f0364f3ef8566a3ef3293d7bf9 (patch) | |
tree | d29396583a9a7bff1f9fc73805f66955d98169a4 /src/emacs.cc | |
parent | f322769775e2ff8b316336e5791060fb38f31450 (diff) | |
download | fork-ledger-68fa8600ee90a5f0364f3ef8566a3ef3293d7bf9.tar.gz fork-ledger-68fa8600ee90a5f0364f3ef8566a3ef3293d7bf9.tar.bz2 fork-ledger-68fa8600ee90a5f0364f3ef8566a3ef3293d7bf9.zip |
Simplified a switch statement
Diffstat (limited to 'src/emacs.cc')
-rw-r--r-- | src/emacs.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emacs.cc b/src/emacs.cc index d5e40114..5048a348 100644 --- a/src/emacs.cc +++ b/src/emacs.cc @@ -89,15 +89,15 @@ void format_emacs_posts::operator()(post_t& post) << post.amount << "\""; switch (post.state()) { + case item_t::UNCLEARED: + out << " nil"; + break; case item_t::CLEARED: out << " t"; break; case item_t::PENDING: out << " pending"; break; - default: - out << " nil"; - break; } if (post.cost) |