Fix Chromium clang plugin warnings
NOTRY=true BUG=webrtc:163 Review-Url: https://codereview.webrtc.org/2291503002 Cr-Commit-Position: refs/heads/master@{#13959}
This commit is contained in:
@ -47,7 +47,7 @@ class Channel : public AudioPacketizationCallback {
|
||||
public:
|
||||
|
||||
Channel(int16_t chID = -1);
|
||||
~Channel();
|
||||
~Channel() override;
|
||||
|
||||
int32_t SendData(FrameType frameType,
|
||||
uint8_t payloadType,
|
||||
|
||||
@ -46,6 +46,12 @@ PCMFile::PCMFile(uint32_t timestamp)
|
||||
timestamp_ = timestamp;
|
||||
}
|
||||
|
||||
PCMFile::~PCMFile() {
|
||||
if (pcm_file_) {
|
||||
fclose(pcm_file_);
|
||||
}
|
||||
}
|
||||
|
||||
int16_t PCMFile::ChooseFile(std::string* file_name, int16_t max_len,
|
||||
uint16_t* frequency_hz) {
|
||||
char tmp_name[MAX_FILE_NAME_LENGTH_BYTE];
|
||||
|
||||
@ -26,11 +26,7 @@ class PCMFile {
|
||||
public:
|
||||
PCMFile();
|
||||
PCMFile(uint32_t timestamp);
|
||||
~PCMFile() {
|
||||
if (pcm_file_ != NULL) {
|
||||
fclose(pcm_file_);
|
||||
}
|
||||
}
|
||||
~PCMFile();
|
||||
|
||||
void Open(const std::string& filename, uint16_t frequency, const char* mode,
|
||||
bool auto_rewind = false);
|
||||
|
||||
@ -118,10 +118,8 @@ bool FixedPayloadTypeCodec(const char* payloadName);
|
||||
class VADCallback : public ACMVADCallback {
|
||||
public:
|
||||
VADCallback();
|
||||
~VADCallback() {
|
||||
}
|
||||
|
||||
int32_t InFrameType(FrameType frame_type);
|
||||
int32_t InFrameType(FrameType frame_type) override;
|
||||
|
||||
void PrintFrameTypes();
|
||||
void Reset();
|
||||
|
||||
Reference in New Issue
Block a user