ClangTidy fixes for logging/

These are manual edits please verify there are no typos.
Feel free to auto-submit if there are no issues.

Bug: webrtc:10410
Change-Id: I2ea59dc66230182bee6ae7a0925aed0fe9ef823c
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/127643
Reviewed-by: Björn Terelius <terelius@webrtc.org>
Commit-Queue: Björn Terelius <terelius@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#27133}
This commit is contained in:
Benjamin Wright
2019-03-13 17:51:59 -07:00
committed by Commit Bot
parent 27897662d2
commit f1c9e21366
3 changed files with 9 additions and 9 deletions

View File

@ -315,7 +315,7 @@ size_t RemoveNonWhitelistedRtcpBlocks(const rtc::Buffer& packet,
template <typename EventType, typename ProtoType>
void EncodeRtcpPacket(rtc::ArrayView<const EventType*> batch,
ProtoType* proto_batch) {
if (batch.size() == 0) {
if (batch.empty()) {
return;
}
@ -366,7 +366,7 @@ void EncodeRtcpPacket(rtc::ArrayView<const EventType*> batch,
template <typename EventType, typename ProtoType>
void EncodeRtpPacket(const std::vector<const EventType*>& batch,
ProtoType* proto_batch) {
if (batch.size() == 0) {
if (batch.empty()) {
return;
}
@ -889,7 +889,7 @@ void RtcEventLogEncoderNewFormat::EncodeAlrState(
void RtcEventLogEncoderNewFormat::EncodeAudioNetworkAdaptation(
rtc::ArrayView<const RtcEventAudioNetworkAdaptation*> batch,
rtclog2::EventStream* event_stream) {
if (batch.size() == 0)
if (batch.empty())
return;
// Base event
@ -1041,7 +1041,7 @@ void RtcEventLogEncoderNewFormat::EncodeAudioNetworkAdaptation(
void RtcEventLogEncoderNewFormat::EncodeAudioPlayout(
rtc::ArrayView<const RtcEventAudioPlayout*> batch,
rtclog2::EventStream* event_stream) {
if (batch.size() == 0)
if (batch.empty())
return;
// Base event
@ -1120,7 +1120,7 @@ void RtcEventLogEncoderNewFormat::EncodeAudioSendStreamConfig(
void RtcEventLogEncoderNewFormat::EncodeBweUpdateDelayBased(
rtc::ArrayView<const RtcEventBweUpdateDelayBased*> batch,
rtclog2::EventStream* event_stream) {
if (batch.size() == 0)
if (batch.empty())
return;
// Base event
@ -1177,7 +1177,7 @@ void RtcEventLogEncoderNewFormat::EncodeBweUpdateDelayBased(
void RtcEventLogEncoderNewFormat::EncodeBweUpdateLossBased(
rtc::ArrayView<const RtcEventBweUpdateLossBased*> batch,
rtclog2::EventStream* event_stream) {
if (batch.size() == 0)
if (batch.empty())
return;
// Base event