Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Unified Diff: webrtc/common_audio/wav_file.cc

Issue 2719733002: Replace NULL with nullptr or null in webrtc/audio/ and common_audio/. (Closed)
Patch Set: Fixing test. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/common_audio/vad/vad_core_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/common_audio/wav_file.cc
diff --git a/webrtc/common_audio/wav_file.cc b/webrtc/common_audio/wav_file.cc
index 2b9098a6cddd153741b7f1e4f6b82c50e4a69010..0f37f9cdea0692b7daa576901a256edb4ee3d34a 100644
--- a/webrtc/common_audio/wav_file.cc
+++ b/webrtc/common_audio/wav_file.cc
@@ -107,7 +107,7 @@ size_t WavReader::ReadSamples(size_t num_samples, float* samples) {
void WavReader::Close() {
RTC_CHECK_EQ(0, fclose(file_handle_));
- file_handle_ = NULL;
+ file_handle_ = nullptr;
}
WavWriter::WavWriter(const std::string& filename, int sample_rate,
@@ -170,7 +170,7 @@ void WavWriter::Close() {
kBytesPerSample, num_samples_);
RTC_CHECK_EQ(1, fwrite(header, kWavHeaderSize, 1, file_handle_));
RTC_CHECK_EQ(0, fclose(file_handle_));
- file_handle_ = NULL;
+ file_handle_ = nullptr;
}
} // namespace webrtc
« no previous file with comments | « webrtc/common_audio/vad/vad_core_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698