diff --git a/daemon/src/sip/sdp.cpp b/daemon/src/sip/sdp.cpp
index a517e97af5d3d1f3862ff99af5f888d5da7f4955..b20b29d5c2d2be5a5e651a5ca9077d0e4c16870d 100644
--- a/daemon/src/sip/sdp.cpp
+++ b/daemon/src/sip/sdp.cpp
@@ -207,7 +207,7 @@ void Sdp::setTelephoneEventRtpmap(pjmedia_sdp_media *med)
 
 void Sdp::setLocalMediaCapabilities(const CodecOrder &selectedCodecs)
 {
-    if (selectedCodecs.size() == 0)
+    if (selectedCodecs.empty())
         WARN("No selected codec while building local SDP offer");
 
     codec_list_.clear();
diff --git a/daemon/src/sip/sipaccount.cpp b/daemon/src/sip/sipaccount.cpp
index b70667080e7c031963c3cbf57a0fd5d79b9ffd20..2ba3d7b363f43795ee2d895f33f4b1b10ff83a34 100644
--- a/daemon/src/sip/sipaccount.cpp
+++ b/daemon/src/sip/sipaccount.cpp
@@ -899,7 +899,7 @@ void SIPAccount::setCredentials(const std::vector<std::map<std::string, std::str
 
     bool md5HashingEnabled = Manager::instance().preferences.getMd5Hash();
 
-    assert(creds.size() > 0); // we can not authenticate without credentials
+    assert(not creds.empty()); // we can not authenticate without credentials
 
     credentials_ = creds;