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

Unified Diff: snapshot/test/test_thread_snapshot.h

Issue 1483073004: Replace use of .Pass() with crashpad::move(). (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: pass: more80cols-and-fix-move Created 5 years, 1 month 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: snapshot/test/test_thread_snapshot.h
diff --git a/snapshot/test/test_thread_snapshot.h b/snapshot/test/test_thread_snapshot.h
index 9b00d32ff300cb1aba22562a093fc76465dd2762..e3e844f5ae7167add97e4aaa2fcad5488adcfedc 100644
--- a/snapshot/test/test_thread_snapshot.h
+++ b/snapshot/test/test_thread_snapshot.h
@@ -24,6 +24,7 @@
#include "snapshot/cpu_context.h"
#include "snapshot/memory_snapshot.h"
#include "snapshot/thread_snapshot.h"
+#include "util/misc/move.h"
#include "util/stdlib/pointer_container.h"
namespace crashpad {
@@ -55,7 +56,9 @@ class TestThreadSnapshot final : public ThreadSnapshot {
//!
//! \param[in] stack The memory region that Stack() will return. The
//! TestThreadSnapshot object takes ownership of \a stack.
- void SetStack(scoped_ptr<MemorySnapshot> stack) { stack_ = stack.Pass(); }
+ void SetStack(scoped_ptr<MemorySnapshot> stack) {
+ stack_ = crashpad::move(stack);
+ }
void SetThreadID(uint64_t thread_id) { thread_id_ = thread_id; }
void SetSuspendCount(int suspend_count) { suspend_count_ = suspend_count; }

Powered by Google App Engine
This is Rietveld 408576698