Commit 8c6089cb authored by Tristan Matthews's avatar Tristan Matthews

* #30216: daemon: fix use of "auto" keyword

parent ac9ddf05
......@@ -127,9 +127,8 @@ void
PresenceManager::setSubscriptions(const std::string& accountID, const std::vector<std::string>& uris)
{
SIPAccount *sipaccount = Manager::instance().getSipAccount(accountID);
for (auto u:uris) {
sipaccount->getPresence()->subscribeClient(u,true);
}
for (const auto &u : uris)
sipaccount->getPresence()->subscribeClient(u, true);
}
......
......@@ -128,7 +128,6 @@ void
PresenceManager::setSubscriptions(const std::string& accountID, const std::vector<std::string>& uris)
{
SIPAccount *sipaccount = Manager::instance().getSipAccount(accountID);
for (auto u:uris) {
for (const auto &u : uris)
sipaccount->getPresence()->subscribeClient(u,true);
}
}
\ No newline at end of file
}
......@@ -59,7 +59,7 @@ Conference::Conference()
Conference::~Conference()
{
for (auto participant_id : participants_)
for (const auto &participant_id : participants_)
remove(participant_id);
}
......
......@@ -417,7 +417,7 @@ void SIPAccount::unserialize(const Conf::YamlNode &mapNode)
} else {
vector<map<string, string> > videoCodecDetails;
for (auto it : *seq) {
for (const auto &it : *seq) {
MappingNode *codec = static_cast<MappingNode *>(it);
map<string, string> codecMap;
codec->getValue(VIDEO_CODEC_NAME, &codecMap[VIDEO_CODEC_NAME]);
......@@ -486,7 +486,7 @@ void SIPAccount::unserialize(const Conf::YamlNode &mapNode)
SequenceNode *credSeq = static_cast<SequenceNode *>(credNode);
Sequence *seq = credSeq->getSequence();
for (auto it : *seq) {
for (const auto &it : *seq) {
MappingNode *cred = static_cast<MappingNode *>(it);
std::string user;
std::string pass;
......
......@@ -197,7 +197,7 @@ class SIPPresence {
return enabled_;
}
const std::list< PresSubClient *> getClientSubscriptions() {
std::list< PresSubClient *> getClientSubscriptions() {
return pres_sub_client_list_;
}
......
Markdown is supported
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