jsonapi-generator fix param initialization on Android

without this patch Android compilation would fail in cases like
RsPeerId sslid(RsPeerId());
This commit is contained in:
Gioacchino Mazzurco 2018-10-04 23:37:39 +02:00
parent 321d2e84bd
commit 0f01f110ad
No known key found for this signature in database
GPG Key ID: A1FBCA3872E87051

View File

@ -302,7 +302,7 @@ int main(int argc, char *argv[])
const MethodParam& mp(paramsMap[pn]); const MethodParam& mp(paramsMap[pn]);
paramsDeclaration += "\t\t" + mp.type + " " + mp.name; paramsDeclaration += "\t\t" + mp.type + " " + mp.name;
if(!mp.defval.isEmpty()) if(!mp.defval.isEmpty())
paramsDeclaration += "(" + mp.defval + ")"; paramsDeclaration += " = " + mp.defval;
paramsDeclaration += ";\n"; paramsDeclaration += ";\n";
if(mp.in) if(mp.in)
inputParamsDeserialization += "\t\t\tRS_SERIAL_PROCESS(" inputParamsDeserialization += "\t\t\tRS_SERIAL_PROCESS("