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

Unified Diff: util/win/process_info.cc

Issue 1483073004: Replace use of .Pass() with crashpad::move(). (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: pass: . 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
« no previous file with comments | « util/win/exception_handler_server.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/win/process_info.cc
diff --git a/util/win/process_info.cc b/util/win/process_info.cc
index 3e048cf016d7335377c9b1f36dff32492e9bd7fa..2ac3a98bfacbe937f5bb60edda1e93bbb74c51be 100644
--- a/util/win/process_info.cc
+++ b/util/win/process_info.cc
@@ -150,11 +150,11 @@ scoped_ptr<uint8_t[]> QueryObject(
if (!NT_SUCCESS(status)) {
NTSTATUS_LOG(ERROR, status) << "NtQueryObject";
- return scoped_ptr<uint8_t[]>();
+ return nullptr;
}
DCHECK_GE(return_length, minimum_size);
- return buffer.Pass();
+ return buffer;
}
} // namespace
« no previous file with comments | « util/win/exception_handler_server.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698