From e28085157eeb535a7f7f298d80dbe0c4f33febd9 Mon Sep 17 00:00:00 2001 From: Tristan Matthews <tristan.matthews@savoirfairelinux.com> Date: Thu, 12 Apr 2012 15:19:21 -0400 Subject: [PATCH] * #9782: sip/sdp: fix emptiness checks --- daemon/src/sip/sdp.cpp | 2 +- daemon/src/sip/sipaccount.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/src/sip/sdp.cpp b/daemon/src/sip/sdp.cpp index a517e97af5..b20b29d5c2 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 b70667080e..2ba3d7b363 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; -- GitLab