提交 e17f7740 authored 作者: José Luis Millán's avatar José Luis Millán

clang-tidy

上级 4835634f
......@@ -83,7 +83,10 @@ namespace RTC
json[JsonStringRtpParameters] = this->rtpParameters.ToJson();
if (this->rtpStream != nullptr)
{
json[JsonStringRtpStream] = this->rtpStream->ToJson();
json[JsonStringLossPercentage] = GetLossPercentage();
}
json[JsonStringPaused] = this->paused;
......@@ -95,8 +98,6 @@ namespace RTC
json[JsonStringEffectiveProfile] =
RTC::RtpEncodingParameters::profile2String[this->effectiveProfile];
json[JsonStringLossPercentage] = GetLossPercentage();
return json;
}
......@@ -237,7 +238,7 @@ namespace RTC
MS_ASSERT(this->profiles.find(profile) == this->profiles.end(), "profile already exists");
MS_ASSERT(
!(profile == RTC::RtpEncodingParameters::Profile::DEFAULT && this->profiles.size() != 0),
!(profile == RTC::RtpEncodingParameters::Profile::DEFAULT && !this->profiles.empty()),
"default profile cannot coexist with others");
// Insert the new profile.
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论