The check finds implicit conversions of integer literals to bools: bool b1 = 1; bool b2 = static_cast<bool>(1); and transforms them to: bool b1 = true; bool b2 = true; Bug: chromium:1290142 Change-Id: I6819a0bd2ca84ecadae08ed9389c17d2652589f4 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/248166 Auto-Submit: Anton Bikineev <bikineev@chromium.org> Reviewed-by: Magnus Flodman <mflodman@webrtc.org> Commit-Queue: Anton Bikineev <bikineev@chromium.org> Cr-Commit-Position: refs/heads/main@{#35778}
20 lines
569 B
C++
20 lines
569 B
C++
/*
|
|
* Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#include "api/video/encoded_frame.h"
|
|
|
|
namespace webrtc {
|
|
|
|
bool EncodedFrame::delayed_by_retransmission() const {
|
|
return false;
|
|
}
|
|
|
|
} // namespace webrtc
|