提交 1ad97057 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

clang-tidy

上级 e88b59d5
...@@ -48,14 +48,12 @@ namespace RTC ...@@ -48,14 +48,12 @@ namespace RTC
inline FeedbackItem::~FeedbackItem() inline FeedbackItem::~FeedbackItem()
{ {
if (this->raw) delete[] this->raw;
delete[] this->raw;
} }
inline void FeedbackItem::Serialize() inline void FeedbackItem::Serialize()
{ {
if (this->raw) delete[] this->raw;
delete[] this->raw;
this->raw = new uint8_t[this->GetSize()]; this->raw = new uint8_t[this->GetSize()];
this->Serialize(this->raw); this->Serialize(this->raw);
......
...@@ -194,6 +194,7 @@ namespace RTC ...@@ -194,6 +194,7 @@ namespace RTC
goto error; goto error;
} }
// NOLINTNEXTLINE(cppcoreguidelines-pro-type-cstyle-cast)
ret = EVP_PKEY_assign_EC_KEY(DtlsTransport::privateKey, ecKey); ret = EVP_PKEY_assign_EC_KEY(DtlsTransport::privateKey, ecKey);
if (ret == 0) if (ret == 0)
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论