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

Unified Diff: components/copresence/mediums/audio/audio_player_impl.cc

Issue 691223002: Replacing NULL with nullptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Using EXPECT_THAT Created 6 years, 2 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: components/copresence/mediums/audio/audio_player_impl.cc
diff --git a/components/copresence/mediums/audio/audio_player_impl.cc b/components/copresence/mediums/audio/audio_player_impl.cc
index 05c3906361bd6cb3d16e0163f0178c5a3edca891..d84d6a1f9fab6a3ad672c3c442d8ecbf80a59e9f 100644
--- a/components/copresence/mediums/audio/audio_player_impl.cc
+++ b/components/copresence/mediums/audio/audio_player_impl.cc
@@ -29,7 +29,7 @@ namespace copresence {
// Public methods.
AudioPlayerImpl::AudioPlayerImpl()
- : is_playing_(false), stream_(NULL), frame_index_(0) {
+ : is_playing_(false), stream_(nullptr), frame_index_(0) {
}
AudioPlayerImpl::~AudioPlayerImpl() {
@@ -87,7 +87,7 @@ void AudioPlayerImpl::InitializeOnAudioThread() {
LOG(ERROR) << "Failed to open an output stream.";
if (stream_) {
stream_->Close();
- stream_ = NULL;
+ stream_ = nullptr;
}
return;
}
@@ -131,7 +131,7 @@ void AudioPlayerImpl::StopAndCloseOnAudioThread() {
if (is_playing_)
stream_->Stop();
stream_->Close();
- stream_ = NULL;
+ stream_ = nullptr;
is_playing_ = false;
}

Powered by Google App Engine
This is Rietveld 408576698