summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-13 19:56:10 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-13 19:56:10 -0400
commite3f228bd5bb0e43bbbdf2a22f796192a887b02b3 (patch)
tree02acc790bd3e64ec209e7ba74458702ca7f7d684
parent2ea075dc4f48b5212a2b404e59ce16147871ba86 (diff)
downloadfork-ledger-e3f228bd5bb0e43bbbdf2a22f796192a887b02b3.tar.gz
fork-ledger-e3f228bd5bb0e43bbbdf2a22f796192a887b02b3.tar.bz2
fork-ledger-e3f228bd5bb0e43bbbdf2a22f796192a887b02b3.zip
Fixed several misplaced parentheses
-rw-r--r--src/textual.cc8
-rw-r--r--src/xact.cc4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/textual.cc b/src/textual.cc
index 113bafe8..cc7c7e21 100644
--- a/src/textual.cc
+++ b/src/textual.cc
@@ -885,14 +885,14 @@ void instance_t::assert_directive(char * line)
{
expr_t expr(line);
if (! expr.calc(context.scope).to_boolean())
- throw_(parse_error, _("Assertion failed: %1" << line));
+ throw_(parse_error, _("Assertion failed: %1") << line);
}
void instance_t::check_directive(char * line)
{
expr_t expr(line);
if (! expr.calc(context.scope).to_boolean())
- warning_(_("Check failed: %1" << line));
+ warning_(_("Check failed: %1") << line);
}
void instance_t::expr_directive(char * line)
@@ -1502,9 +1502,9 @@ xact_t * instance_t::parse_xact(char * line,
}
else if (! expr.calc(bound_scope).to_boolean()) {
if (c == 'a') {
- throw_(parse_error, _("Transaction assertion failed: %1" << p));
+ throw_(parse_error, _("Transaction assertion failed: %1") << p);
} else {
- warning_(_("Transaction check failed: %1" << p));
+ warning_(_("Transaction check failed: %1") << p);
}
}
}
diff --git a/src/xact.cc b/src/xact.cc
index 7493bd83..a0b9ef37 100644
--- a/src/xact.cc
+++ b/src/xact.cc
@@ -694,9 +694,9 @@ void auto_xact_t::extend_xact(xact_base_t& xact,
else if (! pair.first.calc(bound_scope).to_boolean()) {
if (pair.second == auto_xact_t::EXPR_ASSERTION) {
throw_(parse_error,
- _("Transaction assertion failed: %1" << pair.first));
+ _("Transaction assertion failed: %1") << pair.first);
} else {
- warning_(_("Transaction check failed: %1" << pair.first));
+ warning_(_("Transaction check failed: %1") << pair.first);
}
}
}