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

Unified Diff: mojo/public/cpp/bindings/lib/array_serialization.h

Issue 1535943002: Convert Pass()→std::move() in //mojo/public/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Regenerate correctly 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
Index: mojo/public/cpp/bindings/lib/array_serialization.h
diff --git a/mojo/public/cpp/bindings/lib/array_serialization.h b/mojo/public/cpp/bindings/lib/array_serialization.h
index 48d784ef3f8f0b878b19de836b8e349f798a54e0..495527f967c6573d0ed696ca59ccb5a12d5311b0 100644
--- a/mojo/public/cpp/bindings/lib/array_serialization.h
+++ b/mojo/public/cpp/bindings/lib/array_serialization.h
@@ -165,7 +165,7 @@ struct ArraySerializer<
const ArrayValidateParams* validate_params) {
for (size_t i = 0; i < input.size(); ++i) {
S_Data* element;
- SerializeCaller<S>::Run(input[i].Pass(), buf, &element,
+ SerializeCaller<S>::Run(std::move(input[i]), buf, &element,
validate_params->element_validate_params);
output->at(i) = element;
MOJO_INTERNAL_DLOG_SERIALIZATION_WARNING(
@@ -211,7 +211,7 @@ struct ArraySerializer<
Buffer* buf,
typename Array<T>::Data_** output,
const ArrayValidateParams* validate_params) {
- SerializeArray_(input.Pass(), buf, output, validate_params);
+ SerializeArray_(std::move(input), buf, output, validate_params);
}
};
@@ -221,7 +221,7 @@ struct ArraySerializer<
Buffer* buf,
typename Map<T, U>::Data_** output,
const ArrayValidateParams* validate_params) {
- SerializeMap_(input.Pass(), buf, output, validate_params);
+ SerializeMap_(std::move(input), buf, output, validate_params);
}
};
};
@@ -245,7 +245,7 @@ struct ArraySerializer<U, U_Data, true> {
const ArrayValidateParams* validate_params) {
for (size_t i = 0; i < input.size(); ++i) {
U_Data* result = output->storage() + i;
- SerializeUnion_(input[i].Pass(), buf, &result, true);
+ SerializeUnion_(std::move(input[i]), buf, &result, true);
MOJO_INTERNAL_DLOG_SERIALIZATION_WARNING(
!validate_params->element_is_nullable && output->at(i).is_null(),
VALIDATION_ERROR_UNEXPECTED_NULL_POINTER,
« no previous file with comments | « mojo/public/cpp/bindings/lib/array_internal.h ('k') | mojo/public/cpp/bindings/lib/associated_interface_ptr_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698