Skip to content

Commit

Permalink
IMS-27434 Fixed wrong ..._ToString function name
Browse files Browse the repository at this point in the history
  • Loading branch information
Jens-Olaf Hemprich committed Sep 5, 2024
1 parent 38864b4 commit d4cf35e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ cJSON *{{classname}}_convertToJSON({{classname}}_t *{{classname}}) {
{{/isBoolean}}
{{#isEnum}}
{{#isString}}
if(cJSON_AddStringToObject(item, "{{{baseName}}}", {{{name}}}{{classname}}_ToString({{{classname}}}->{{{name}}})) == NULL)
if(cJSON_AddStringToObject(item, "{{{baseName}}}", {{classname}}_{{{name}}}_ToString({{{classname}}}->{{{name}}})) == NULL)
{
goto fail; //Enum
}
Expand Down Expand Up @@ -884,7 +884,7 @@ fail:
{{^isPrimitiveType}}
{{#isModel}}
{{#isEnum}}
{{^required}}{{{name}}} ? {{/required}}{{{name}}}_local_nonprim_enum{{^required}} : {{projectName}}_{{classVarName}}_{{enumName}}_NULL{{/required}}{{^-last}},{{/-last}}
{{^required}}{{{name}}} ? {{/required}}{{{name}}}_local_nonprim_enum{{^required}} : -1{{/required}}{{^-last}},{{/-last}}
{{/isEnum}}
{{^isEnum}}
{{^required}}{{{name}}} ? {{/required}}{{{name}}}_local_nonprim{{^required}} : NULL{{/required}}{{^-last}},{{/-last}}
Expand Down Expand Up @@ -914,7 +914,7 @@ fail:
{{/isBoolean}}
{{#isEnum}}
{{#isString}}
{{^required}}{{{name}}} ? {{/required}}{{name}}Variable{{^required}} : {{projectName}}_{{classVarName}}_{{enumName}}_NULL{{/required}}{{^-last}},{{/-last}}
{{^required}}{{{name}}} ? {{/required}}{{name}}Variable{{^required}} : -1{{/required}}{{^-last}},{{/-last}}
{{/isString}}
{{/isEnum}}
{{^isEnum}}
Expand Down

0 comments on commit d4cf35e

Please sign in to comment.