Chromium Code Reviews| Index: third_party/WebKit/Source/build/scripts/templates/fields/field.tmpl |
| diff --git a/third_party/WebKit/Source/build/scripts/templates/fields/field.tmpl b/third_party/WebKit/Source/build/scripts/templates/fields/field.tmpl |
| index 8790c220a74458dfa70c7a5238d35b8e99f6a1ab..fd366ae6979722c3d32902d1e202fe74d33ad559 100644 |
| --- a/third_party/WebKit/Source/build/scripts/templates/fields/field.tmpl |
| +++ b/third_party/WebKit/Source/build/scripts/templates/fields/field.tmpl |
| @@ -18,6 +18,14 @@ static_cast<{{field.type_name}}>({{value}}) |
| {% if field.is_bit_field -%} |
| {{field.type_name}} |
| {%- else -%} |
| -const {{field.type_name}}& |
| +{{field.type_name}}& |
| {%- endif %} |
| {% endmacro %} |
| + |
| +{% macro argument_type(field) %} |
| +{% if field.is_bit_field -%} |
| +{{field.type_name}} |
| +{%- else -%} |
| +{{field.type_name}}& |
|
suzyh_UTC10 (ex-contributor)
2017/04/20 00:12:18
Did you mean a const & here?
nainar
2017/04/20 02:53:04
Done.
|
| +{%- endif %} |
| +{% endmacro %} |