| Index: mojo/public/tools/bindings/generators/cpp_templates/struct_data_view_declaration.tmpl
|
| diff --git a/mojo/public/tools/bindings/generators/cpp_templates/struct_data_view_declaration.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/struct_data_view_declaration.tmpl
|
| index 550258f275016a6608f88072481e078eae9f9c95..6ebf7529383fbfbb58c60334a3098145f6ba611f 100644
|
| --- a/mojo/public/tools/bindings/generators/cpp_templates/struct_data_view_declaration.tmpl
|
| +++ b/mojo/public/tools/bindings/generators/cpp_templates/struct_data_view_declaration.tmpl
|
| @@ -84,10 +84,10 @@ class {{struct.name}}DataView {
|
| }
|
|
|
| {%- else %}
|
| - {{kind|cpp_wrapper_type}} {{name}}() const {
|
| + {{kind|cpp_field_type}} {{name}}() const {
|
| {%- if pf.min_version != 0 %}
|
| if (data_->header_.version < {{pf.min_version}})
|
| - return {{kind|cpp_wrapper_type}}{};
|
| + return {{kind|cpp_field_type}}{};
|
| {%- endif %}
|
| return data_->{{name}};
|
| }
|
|
|