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

Unified Diff: chromecast/media/cma/test/mock_frame_provider.cc

Issue 2745053002: Replace unique_ptr.reset(other_unique_ptr.release()) with std::move() in chromecast/ (Closed)
Patch Set: Created 3 years, 9 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 | « chromecast/media/cma/test/mock_frame_consumer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/media/cma/test/mock_frame_provider.cc
diff --git a/chromecast/media/cma/test/mock_frame_provider.cc b/chromecast/media/cma/test/mock_frame_provider.cc
index f4b78ea687fd515180713ea6cc34d5947375c26f..21581ec4d3ac4e74242d3ba9338d4c0c59616b12 100644
--- a/chromecast/media/cma/test/mock_frame_provider.cc
+++ b/chromecast/media/cma/test/mock_frame_provider.cc
@@ -34,7 +34,7 @@ void MockFrameProvider::Configure(
delayed_task_pattern_ = delayed_task_pattern;
pattern_idx_ = 0;
- frame_generator_.reset(frame_generator.release());
+ frame_generator_ = std::move(frame_generator);
}
void MockFrameProvider::SetDelayFlush(bool delay_flush) {
« no previous file with comments | « chromecast/media/cma/test/mock_frame_consumer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698