Skip to content
Snippets Groups Projects
Commit e2808515 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #9782: sip/sdp: fix emptiness checks

parent 144d6e23
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment