mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-12 21:30:45 +01:00
ClangTidy fixes for common_audio/
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: If995d9d9d21534d3c66a1e7c1fc1c62569766f40 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/127627 Commit-Queue: Benjamin Wright <benwright@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27138}
This commit is contained in:
parent
c6fa6d9cc4
commit
8965fbc542
3 changed files with 2 additions and 4 deletions
|
@ -20,8 +20,6 @@
|
|||
#include "rtc_base/checks.h"
|
||||
#include "rtc_base/numerics/safe_conversions.h"
|
||||
|
||||
using rtc::checked_cast;
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
class CopyConverter : public AudioConverter {
|
||||
|
|
|
@ -45,7 +45,7 @@ void SparseFIRFilter::Filter(const float* in, size_t length, float* out) {
|
|||
}
|
||||
|
||||
// Update current state.
|
||||
if (state_.size() > 0u) {
|
||||
if (!state_.empty()) {
|
||||
if (length >= state_.size()) {
|
||||
std::memcpy(&state_[0], &in[length - state_.size()],
|
||||
state_.size() * sizeof(*in));
|
||||
|
|
|
@ -122,7 +122,7 @@ void FindWaveChunk(ChunkHeader* chunk_header,
|
|||
if (!readable->SeekForward(chunk_header->Size))
|
||||
return; // EOF or error.
|
||||
}
|
||||
return; // EOF.
|
||||
// EOF.
|
||||
}
|
||||
|
||||
bool ReadFmtChunkData(FmtSubchunk* fmt_subchunk, ReadableWav* readable) {
|
||||
|
|
Loading…
Reference in a new issue