summaryrefslogtreecommitdiff
path: root/src/xact.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-02-27 04:59:04 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-02-27 05:02:25 -0600
commit2ec35ea6e98dcfb03fb8c2e90b85991aaa7be2fa (patch)
tree762118fc9fec617672c84980ba7efc9bd1f980f9 /src/xact.cc
parent0e7b4fb1821a80ee43fafd55447a01255564eb3d (diff)
downloadfork-ledger-2ec35ea6e98dcfb03fb8c2e90b85991aaa7be2fa.tar.gz
fork-ledger-2ec35ea6e98dcfb03fb8c2e90b85991aaa7be2fa.tar.bz2
fork-ledger-2ec35ea6e98dcfb03fb8c2e90b85991aaa7be2fa.zip
Implement the "tag" metadata directive
Diffstat (limited to 'src/xact.cc')
-rw-r--r--src/xact.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xact.cc b/src/xact.cc
index 5da61b7b..ae571b62 100644
--- a/src/xact.cc
+++ b/src/xact.cc
@@ -664,12 +664,12 @@ void auto_xact_t::extend_xact(xact_base_t& xact)
}
if (check_exprs) {
- foreach (check_expr_pair& pair, *check_exprs) {
- if (pair.second == auto_xact_t::EXPR_GENERAL) {
+ foreach (expr_t::check_expr_pair& pair, *check_exprs) {
+ if (pair.second == expr_t::EXPR_GENERAL) {
pair.first.calc(bound_scope);
}
else if (! pair.first.calc(bound_scope).to_boolean()) {
- if (pair.second == auto_xact_t::EXPR_ASSERTION)
+ if (pair.second == expr_t::EXPR_ASSERTION)
throw_(parse_error,
_("Transaction assertion failed: %1") << pair.first);
else