From 2cee0fe23f84a1e6ccd7078098df2c5ffbe0378f Mon Sep 17 00:00:00 2001 From: Martin Michlmayr Date: Sun, 18 May 2014 09:51:32 -0400 Subject: Cosmetic change - format code consistently Add a space between if and the opening bracket, between a closing round bracket and the following opening curly bracket, etc. --- src/journal.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/journal.cc') diff --git a/src/journal.cc b/src/journal.cc index ced96ee9..b11b5c45 100644 --- a/src/journal.cc +++ b/src/journal.cc @@ -174,7 +174,7 @@ account_t * journal_t::expand_aliases(string name) { // prevent infinite excursion. Each alias may only be expanded at most once. account_t * result = NULL; - if(no_aliases) + if (no_aliases) return result; bool keep_expanding = true; @@ -184,7 +184,7 @@ account_t * journal_t::expand_aliases(string name) { if (account_aliases.size() > 0) { accounts_map::const_iterator i = account_aliases.find(name); if (i != account_aliases.end()) { - if(std::find(already_seen.begin(), already_seen.end(), name) != already_seen.end()) { + if (std::find(already_seen.begin(), already_seen.end(), name) != already_seen.end()) { throw_(std::runtime_error, _f("Infinite recursion on alias expansion for %1%") % name); @@ -197,11 +197,11 @@ account_t * journal_t::expand_aliases(string name) { // only check the very first account for alias expansion, in case // that can be expanded successfully size_t colon = name.find(':'); - if(colon != string::npos) { + if (colon != string::npos) { string first_account_name = name.substr(0, colon); accounts_map::const_iterator j = account_aliases.find(first_account_name); if (j != account_aliases.end()) { - if(std::find(already_seen.begin(), already_seen.end(), first_account_name) != already_seen.end()) { + if (std::find(already_seen.begin(), already_seen.end(), first_account_name) != already_seen.end()) { throw_(std::runtime_error, _f("Infinite recursion on alias expansion for %1%") % first_account_name); -- cgit v1.2.3