diff --git a/daemon/src/client/android/presencemanager.cpp b/daemon/src/client/android/presencemanager.cpp
index ee9c30607b00d03a7e2ba6254368caaa6a06faff..de3a0479035a400d8e2e8e4891b13a69618018f8 100644
--- a/daemon/src/client/android/presencemanager.cpp
+++ b/daemon/src/client/android/presencemanager.cpp
@@ -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);
 }
 
 
diff --git a/daemon/src/client/dbus/presencemanager.cpp b/daemon/src/client/dbus/presencemanager.cpp
index de6c17aefbe15a358a0d0f905cf65d2ec673da13..a0219dc24be0ac7c7dcd41e9c6b346f209785723 100644
--- a/daemon/src/client/dbus/presencemanager.cpp
+++ b/daemon/src/client/dbus/presencemanager.cpp
@@ -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
+}
diff --git a/daemon/src/conference.cpp b/daemon/src/conference.cpp
index 57ff553ac3eba050f0fe86f5487f9fe444dd8ac7..8fc3432b78a37e2b521726a0f46f64b473aece06 100644
--- a/daemon/src/conference.cpp
+++ b/daemon/src/conference.cpp
@@ -59,7 +59,7 @@ Conference::Conference()
 
 Conference::~Conference()
 {
-    for (auto participant_id : participants_)
+    for (const auto &participant_id : participants_)
         remove(participant_id);
 }
 
diff --git a/daemon/src/sip/sipaccount.cpp b/daemon/src/sip/sipaccount.cpp
index fcf77df4e296a2e445e23b2c7071919a3d41de64..3c6d72e5f7e38cf4b717c5ea6105e3e584eb7586 100644
--- a/daemon/src/sip/sipaccount.cpp
+++ b/daemon/src/sip/sipaccount.cpp
@@ -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;
diff --git a/daemon/src/sip/sippresence.h b/daemon/src/sip/sippresence.h
index dffb2f8c4e7bcde07d08855133f3220481f6b2d4..7d2e0e9f7c081140e28a04d69c1693c529478690 100644
--- a/daemon/src/sip/sippresence.h
+++ b/daemon/src/sip/sippresence.h
@@ -197,7 +197,7 @@ class SIPPresence {
             return enabled_;
         }
 
-        const std::list< PresSubClient *> getClientSubscriptions() {
+        std::list< PresSubClient *> getClientSubscriptions() {
             return pres_sub_client_list_;
         }