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

Unified Diff: webrtc/common_audio/wav_file.cc

Issue 2685783014: Replace NULL with nullptr in all C++ files. (Closed)
Patch Set: Fixing android. 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
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

Powered by Google App Engine
This is Rietveld 408576698