Commit e2808515 authored by Tristan Matthews's avatar Tristan Matthews

* #9782: sip/sdp: fix emptiness checks

parent 144d6e23
......@@ -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();
......
......@@ -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;
......
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