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

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

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