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

Unified Diff: chromecast/common/media/shared_memory_chunk.cc

Issue 1553503002: Convert Pass()→std::move() in //chromecast (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/browser/url_request_context_factory.cc ('k') | chromecast/crash/linux/crash_testing_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/common/media/shared_memory_chunk.cc
diff --git a/chromecast/common/media/shared_memory_chunk.cc b/chromecast/common/media/shared_memory_chunk.cc
index 405339502c5a94f77bb070dea5134523bf0ce10d..885b0e1a56016fa3e41230ff8b868654c3cd316e 100644
--- a/chromecast/common/media/shared_memory_chunk.cc
+++ b/chromecast/common/media/shared_memory_chunk.cc
@@ -4,17 +4,16 @@
#include "chromecast/common/media/shared_memory_chunk.h"
+#include <utility>
+
#include "base/memory/shared_memory.h"
namespace chromecast {
namespace media {
-SharedMemoryChunk::SharedMemoryChunk(
- scoped_ptr<base::SharedMemory> shared_mem,
- size_t size)
- : shared_mem_(shared_mem.Pass()),
- size_(size) {
-}
+SharedMemoryChunk::SharedMemoryChunk(scoped_ptr<base::SharedMemory> shared_mem,
+ size_t size)
+ : shared_mem_(std::move(shared_mem)), size_(size) {}
SharedMemoryChunk::~SharedMemoryChunk() {
}
« no previous file with comments | « chromecast/browser/url_request_context_factory.cc ('k') | chromecast/crash/linux/crash_testing_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698