| Index: mojo/public/tools/bindings/generators/cpp_templates/union_serialization_declaration.tmpl
|
| diff --git a/mojo/public/tools/bindings/generators/cpp_templates/union_serialization_declaration.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/union_serialization_declaration.tmpl
|
| index 606eda465e4371780d72b306cc2b07bd1c155f91..cb2ee3834be8471455aeb47e86babd1c3ebd88eb 100644
|
| --- a/mojo/public/tools/bindings/generators/cpp_templates/union_serialization_declaration.tmpl
|
| +++ b/mojo/public/tools/bindings/generators/cpp_templates/union_serialization_declaration.tmpl
|
| @@ -72,7 +72,7 @@ struct Serializer<{{mojom_type}}Ptr, MaybeConstUserType> {
|
| return size;
|
| }
|
|
|
| - static void Serialize({{mojom_type}}Ptr& input,
|
| + static void Serialize(MaybeConstUserType& input,
|
| Buffer* buffer,
|
| {{data_type}}** output,
|
| bool inlined,
|
| @@ -156,7 +156,7 @@ struct Serializer<{{mojom_type}}Ptr, MaybeConstUserType> {
|
| }
|
|
|
| static bool Deserialize({{data_type}}* input,
|
| - {{mojom_type}}Ptr* output,
|
| + UserType* output,
|
| SerializationContext* context) {
|
| if (!input || input->is_null())
|
| return CallSetToNullIfExists<Traits>(output);
|
|
|