added brace wrapping after if and for

This commit is contained in:
fourtf
2018-10-21 13:43:02 +02:00
parent c6e1ec3c71
commit e259b9e39f
138 changed files with 4738 additions and 2237 deletions
@@ -14,7 +14,8 @@ AccountController::AccountController()
});
this->twitch.accounts.itemRemoved.connect([this](const auto &args) {
if (args.caller != this) {
if (args.caller != this)
{
auto &accs = this->twitch.accounts.getVector();
auto it = std::find(accs.begin(), accs.end(), args.item);
assert(it != accs.end());
@@ -24,14 +25,17 @@ AccountController::AccountController()
});
this->accounts_.itemRemoved.connect([this](const auto &args) {
switch (args.item->getProviderId()) {
case ProviderId::Twitch: {
switch (args.item->getProviderId())
{
case ProviderId::Twitch:
{
auto &accs = this->twitch.accounts.getVector();
auto it = std::find(accs.begin(), accs.end(), args.item);
assert(it != accs.end());
this->twitch.accounts.removeItem(it - accs.begin(), this);
} break;
}
break;
}
});
}