Chromium Code Reviews| Index: mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_definition.tmpl |
| diff --git a/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_definition.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_definition.tmpl |
| index 2bd7ceb337dbfb7f7fef8fdc0158b68060132605..d35c2a352bfb2bcc678a5828c98e1dc6564cee81 100644 |
| --- a/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_definition.tmpl |
| +++ b/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_definition.tmpl |
| @@ -18,7 +18,7 @@ |
| {{struct.name}}Ptr {{struct.name}}::Clone() const { |
| {{struct.name}}Ptr rv(New()); |
| {%- for field in struct.fields %} |
| -{%- if field.kind|is_object_kind and not field.kind|is_string_kind %} |
| +{%- if field.kind|is_object_kind and not field.kind|is_string_kind and not field.kind|is_typemapped_kind%} |
|
yzshen1
2016/05/26 16:24:14
style nit:
- one space before %}
- break the line
Sam McNally
2016/05/27 02:57:40
Done.
|
| rv->{{field.name}} = {{field.name}}.Clone(); |
| {%- else %} |
| rv->{{field.name}} = {{field.name}}; |