Index: minidump/minidump_crashpad_info_writer.cc |
diff --git a/minidump/minidump_crashpad_info_writer.cc b/minidump/minidump_crashpad_info_writer.cc |
index 9314224b7cd5f6b6d0eb2482686fe6c490d1c466..ea50152ebc8b66e59c497ad7cc1ef87f01eb04a0 100644 |
--- a/minidump/minidump_crashpad_info_writer.cc |
+++ b/minidump/minidump_crashpad_info_writer.cc |
@@ -19,6 +19,7 @@ |
#include "minidump/minidump_simple_string_dictionary_writer.h" |
#include "snapshot/process_snapshot.h" |
#include "util/file/file_writer.h" |
+#include "util/stdlib/move.h" |
namespace crashpad { |
@@ -51,14 +52,14 @@ void MinidumpCrashpadInfoWriter::InitializeFromSnapshot( |
simple_annotations->InitializeFromMap( |
process_snapshot->AnnotationsSimpleMap()); |
if (simple_annotations->IsUseful()) { |
- SetSimpleAnnotations(simple_annotations.Pass()); |
+ SetSimpleAnnotations(crashpad::move(simple_annotations)); |
} |
auto modules = make_scoped_ptr(new MinidumpModuleCrashpadInfoListWriter()); |
modules->InitializeFromSnapshot(process_snapshot->Modules()); |
if (modules->IsUseful()) { |
- SetModuleList(modules.Pass()); |
+ SetModuleList(crashpad::move(modules)); |
} |
} |
@@ -78,14 +79,14 @@ void MinidumpCrashpadInfoWriter::SetSimpleAnnotations( |
scoped_ptr<MinidumpSimpleStringDictionaryWriter> simple_annotations) { |
DCHECK_EQ(state(), kStateMutable); |
- simple_annotations_ = simple_annotations.Pass(); |
+ simple_annotations_ = crashpad::move(simple_annotations); |
} |
void MinidumpCrashpadInfoWriter::SetModuleList( |
scoped_ptr<MinidumpModuleCrashpadInfoListWriter> module_list) { |
DCHECK_EQ(state(), kStateMutable); |
- module_list_ = module_list.Pass(); |
+ module_list_ = crashpad::move(module_list); |
} |
bool MinidumpCrashpadInfoWriter::Freeze() { |