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

Unified Diff: remoting/protocol/audio_decode_scheduler.cc

Issue 2838433003: Replace unique_ptr.reset(other_unique_ptr.release()) with std::move() in chrome (Closed)
Patch Set: Replace unique_ptr.reset(other_unique_ptr.release()) with std::move() in chrome Created 3 years, 7 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
« no previous file with comments | « remoting/host/clipboard_mac.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/audio_decode_scheduler.cc
diff --git a/remoting/protocol/audio_decode_scheduler.cc b/remoting/protocol/audio_decode_scheduler.cc
index 59e2ad84be24cd50168c1bac7491c8f1fae11d34..f251e5be329d03c7a6c99c21cc76fe50785fd672 100644
--- a/remoting/protocol/audio_decode_scheduler.cc
+++ b/remoting/protocol/audio_decode_scheduler.cc
@@ -31,7 +31,7 @@ AudioDecodeScheduler::~AudioDecodeScheduler() {
void AudioDecodeScheduler::Initialize(const protocol::SessionConfig& config) {
DCHECK(thread_checker_.CalledOnValidThread());
DCHECK(!decoder_);
- decoder_.reset(AudioDecoder::CreateAudioDecoder(config).release());
+ decoder_ = AudioDecoder::CreateAudioDecoder(config);
}
void AudioDecodeScheduler::ProcessAudioPacket(
« no previous file with comments | « remoting/host/clipboard_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698