refactored SignalVector

This commit is contained in:
fourtf
2020-02-23 17:10:49 +01:00
parent 2b5c6ffe33
commit e1838154ff
4 changed files with 161 additions and 195 deletions
@@ -30,10 +30,10 @@ AccountController::AccountController()
case ProviderId::Twitch: {
if (args.caller != this)
{
auto accs = this->twitch.accounts.cloneVector();
auto &&accs = this->twitch.accounts;
auto it = std::find(accs.begin(), accs.end(), args.item);
assert(it != accs.end());
this->twitch.accounts.removeItem(it - accs.begin(), this);
this->twitch.accounts.removeAt(it - accs.begin(), this);
}
}
break;