Commit cacbed04 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #28351: managerimpl: use range-based for loop

parent 4ef9da11
......@@ -1594,10 +1594,9 @@ bool ManagerImpl::sendTextMessage(const std::string& callID, const std::string&
ParticipantSet participants(conf->getParticipantList());
for (ParticipantSet::const_iterator iter_p = participants.begin();
iter_p != participants.end(); ++iter_p) {
for (const auto &participant : participants) {
std::string accountId = getAccountFromCall(*iter_p);
std::string accountId = getAccountFromCall(participant);
Account *account = getAccount(accountId);
......@@ -1606,7 +1605,7 @@ bool ManagerImpl::sendTextMessage(const std::string& callID, const std::string&
return false;
}
account->getVoIPLink()->sendTextMessage(*iter_p, message, from);
account->getVoIPLink()->sendTextMessage(participant, message, from);
}
return true;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment