summaryrefslogtreecommitdiff
path: root/src/csv.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/csv.cc')
-rw-r--r--src/csv.cc23
1 files changed, 5 insertions, 18 deletions
diff --git a/src/csv.cc b/src/csv.cc
index c075622e..e823ed41 100644
--- a/src/csv.cc
+++ b/src/csv.cc
@@ -102,28 +102,15 @@ void format_csv_xacts::operator()(xact_t& xact)
}
out << ',';
- switch (xact.state) {
- case xact_t::CLEARED:
+ switch (xact.state()) {
+ case item_t::CLEARED:
write_escaped_string(out, "*");
break;
- case xact_t::PENDING:
+ case item_t::PENDING:
write_escaped_string(out, "!");
break;
- default: {
- xact_t::state_t state;
- if (xact.entry->get_state(&state))
- switch (state) {
- case xact_t::CLEARED:
- write_escaped_string(out, "*");
- break;
- case xact_t::PENDING:
- write_escaped_string(out, "!");
- break;
- default:
- write_escaped_string(out, "");
- break;
- }
- }
+ default:
+ break;
}
out << ',';