summaryrefslogtreecommitdiff
path: root/src/post.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2011-02-10 23:00:41 -0500
committerJohn Wiegley <johnw@newartisans.com>2011-02-10 23:00:41 -0500
commitc2b5b1a516cdc065d14047176116900d2bab867e (patch)
treee83acda94d517a4f23155d02f4855bd6ab5de5fc /src/post.cc
parent20f4ccde96de05cdbd330e6bbb94af363bef486a (diff)
downloadfork-ledger-c2b5b1a516cdc065d14047176116900d2bab867e.tar.gz
fork-ledger-c2b5b1a516cdc065d14047176116900d2bab867e.tar.bz2
fork-ledger-c2b5b1a516cdc065d14047176116900d2bab867e.zip
Whitespace corrections
Diffstat (limited to 'src/post.cc')
-rw-r--r--src/post.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/post.cc b/src/post.cc
index 4fc34892..ca03a675 100644
--- a/src/post.cc
+++ b/src/post.cc
@@ -282,11 +282,11 @@ namespace {
master = master->parent;
if (args[0].is_string()) {
- name = args.get<string>(0);
+ name = args.get<string>(0);
acct = master->find_account(name, false);
}
else if (args[0].is_mask()) {
- name = args.get<mask_t>(0).str();
+ name = args.get<mask_t>(0).str();
acct = master->find_account_re(name);
}
else {
@@ -298,8 +298,8 @@ namespace {
if (! acct)
throw_(std::runtime_error,
_("Could not find an account matching ") << args[0]);
- else
- return value_t(static_cast<scope_t *>(acct));
+
+ return value_t(static_cast<scope_t *>(acct));
}
}
else if (args.type_context() == value_t::SCOPE) {
@@ -313,9 +313,9 @@ namespace {
value_t get_display_account(call_scope_t& args)
{
- post_t& post(args.context<post_t>());
value_t acct = get_account(args);
if (acct.is_string()) {
+ post_t& post(args.context<post_t>());
if (post.has_flags(POST_VIRTUAL)) {
if (post.must_balance())
acct = string_value(string("[") + acct.as_string() + "]");