diff --git a/jsonapi-generator/src/jsonapi-generator.cpp b/jsonapi-generator/src/jsonapi-generator.cpp index 154406594..aa20eda01 100644 --- a/jsonapi-generator/src/jsonapi-generator.cpp +++ b/jsonapi-generator/src/jsonapi-generator.cpp @@ -302,7 +302,7 @@ int main(int argc, char *argv[]) const MethodParam& mp(paramsMap[pn]); paramsDeclaration += "\t\t" + mp.type + " " + mp.name; if(!mp.defval.isEmpty()) - paramsDeclaration += "(" + mp.defval + ")"; + paramsDeclaration += " = " + mp.defval; paramsDeclaration += ";\n"; if(mp.in) inputParamsDeserialization += "\t\t\tRS_SERIAL_PROCESS("