IPCCompiler: Use const references for message constructor parameters

This commit is contained in:
Andreas Kling 2019-12-14 16:15:14 +01:00
parent e49d6cc7e9
commit 46a57c7f59
Notes: sideshowbarker 2024-07-19 10:51:37 +09:00

View File

@ -235,8 +235,9 @@ int main(int argc, char** argv)
builder.append('(');
for (int i = 0; i < parameters.size(); ++i) {
auto& parameter = parameters[i];
builder.append("const ");
builder.append(parameter.type);
builder.append(' ');
builder.append("& ");
builder.append(parameter.name);
if (i != parameters.size() - 1)
builder.append(", ");