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

Unified Diff: remoting/protocol/audio_reader.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_reader.cc
diff --git a/remoting/protocol/audio_reader.cc b/remoting/protocol/audio_reader.cc
index 9723201ec72afb8e1775d57a271107ee7eaf98f2..72a0afd6016307be120943b3781fd45c4dd605fc 100644
--- a/remoting/protocol/audio_reader.cc
+++ b/remoting/protocol/audio_reader.cc
@@ -25,7 +25,7 @@ AudioReader::~AudioReader() {
// static
scoped_ptr<AudioReader> AudioReader::Create(const SessionConfig& config) {
if (!config.is_audio_enabled())
- return scoped_ptr<AudioReader>(NULL);
+ return scoped_ptr<AudioReader>();
// TODO(kxing): Support different session configurations.
return scoped_ptr<AudioReader>(new AudioReader(AudioPacket::ENCODING_RAW));
}

Powered by Google App Engine
This is Rietveld 408576698