| Index: mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl
|
| diff --git a/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl
|
| index e03f00cd8cc1c329b2b2366844c70e1f4783f1b0..1f3ec1e2b1b8bca08314cd58275bf74b0f0a16d1 100644
|
| --- a/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl
|
| +++ b/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl
|
| @@ -10,11 +10,7 @@ class {{export_attribute}} {{struct.name}} {
|
|
|
| {#--- Constants #}
|
| {%- for constant in struct.constants %}
|
| -{%- if constant.kind|is_integral_kind %}
|
| - static const {{constant.kind|cpp_pod_type}} {{constant.name}} = {{constant|constant_value}};
|
| -{%- else %}
|
| - static const {{constant.kind|cpp_pod_type}} {{constant.name}};
|
| -{%- endif %}
|
| + static {{constant|format_constant_declaration(nested=True)}};
|
| {%- endfor %}
|
|
|
| static {{struct.name}}Ptr New();
|
|
|