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

Unified Diff: remoting/protocol/audio_writer.cc

Issue 16964002: Rewrite scoped_ptr<T>(NULL) to use the default ctor in remoting/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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: remoting/protocol/audio_writer.cc
diff --git a/remoting/protocol/audio_writer.cc b/remoting/protocol/audio_writer.cc
index 37c90ed33e54f80fbc0993a57dad70676e253a19..b1855e40e0bcb9507e9eaa1c184a39b7b3b6f9e3 100644
--- a/remoting/protocol/audio_writer.cc
+++ b/remoting/protocol/audio_writer.cc
@@ -36,7 +36,7 @@ void AudioWriter::ProcessAudioPacket(scoped_ptr<AudioPacket> packet,
// static
scoped_ptr<AudioWriter> AudioWriter::Create(const SessionConfig& config) {
if (!config.is_audio_enabled())
- return scoped_ptr<AudioWriter>(NULL);
+ return scoped_ptr<AudioWriter>();
// TODO(kxing): Support different session configurations.
return scoped_ptr<AudioWriter>(new AudioWriter());
}

Powered by Google App Engine
This is Rietveld 408576698