summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/audio_reader.cc
diff options
context:
space:
mode:
authorsergeyu <sergeyu@chromium.org>2014-09-29 12:38:30 -0700
committerCommit bot <commit-bot@chromium.org>2014-09-29 19:38:43 +0000
commitafce97826070950bca497ce147a30312ce780e74 (patch)
tree5d9741c3c98c97427665687d83561d709a2ca222 /remoting/protocol/audio_reader.cc
parent7461dcda6673ccd78b82efc4719e1389fc0c215b (diff)
downloadchromium_src-afce97826070950bca497ce147a30312ce780e74.zip
chromium_src-afce97826070950bca497ce147a30312ce780e74.tar.gz
chromium_src-afce97826070950bca497ce147a30312ce780e74.tar.bz2
Cleanup usage of scoped_ptr<> in remoting for C++11
- Use nullptr to initialize null scoped_ptr(). - use Pass(), PassAs() is no longer required. Review URL: https://codereview.chromium.org/609923004 Cr-Commit-Position: refs/heads/master@{#297236}
Diffstat (limited to 'remoting/protocol/audio_reader.cc')
-rw-r--r--remoting/protocol/audio_reader.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/remoting/protocol/audio_reader.cc b/remoting/protocol/audio_reader.cc
index 72a0afd..6176409 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>();
+ return nullptr;
// TODO(kxing): Support different session configurations.
return scoped_ptr<AudioReader>(new AudioReader(AudioPacket::ENCODING_RAW));
}