| Index: mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl
|
| diff --git a/mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl
|
| index 4383acbd8facb7d68151dd36ae89b38288165187..2c66a85f87331a6946af9155dfb533501e99a28a 100644
|
| --- a/mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl
|
| +++ b/mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl
|
| @@ -50,18 +50,16 @@ namespace {{variant}} {
|
|
|
| {#--- Constants #}
|
| {%- for constant in module.constants %}
|
| -{%- if not constant.kind|is_integral_kind %}
|
| -const {{constant.kind|cpp_pod_type}} {{constant.name}} = {{constant|constant_value}};
|
| +{%- if constant.kind|is_string_kind %}
|
| +const char {{constant.name}}[] = {{constant|constant_value}};
|
| {%- endif %}
|
| {%- endfor %}
|
|
|
| {#--- Struct Constants #}
|
| {%- for struct in structs %}
|
| {%- for constant in struct.constants %}
|
| -{%- if constant.kind|is_integral_kind %}
|
| -const {{constant.kind|cpp_pod_type}} {{struct.name}}::{{constant.name}};
|
| -{%- else %}
|
| -const {{constant.kind|cpp_pod_type}} {{struct.name}}::{{constant.name}} = {{constant|constant_value}};
|
| +{%- if constant.kind|is_string_kind %}
|
| +const char {{struct.name}}::{{constant.name}}[] = {{constant|constant_value}};
|
| {%- endif %}
|
| {%- endfor %}
|
| {%- endfor %}
|
|
|