summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-12-14 16:15:14 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-12-14 16:17:00 +0100
commit46a57c7f5905b8d82f1c810df8b6cc5a7f5970a6 (patch)
treee4cc75e31b5a1018c0daf398431b802b24bdb0a9
parente49d6cc7e96016f4586c9c183b5642bd3114f28b (diff)
downloadserenity-46a57c7f5905b8d82f1c810df8b6cc5a7f5970a6.zip
IPCCompiler: Use const references for message constructor parameters
-rw-r--r--DevTools/IPCCompiler/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/DevTools/IPCCompiler/main.cpp b/DevTools/IPCCompiler/main.cpp
index 1a622d4c40..711f782a7d 100644
--- a/DevTools/IPCCompiler/main.cpp
+++ b/DevTools/IPCCompiler/main.cpp
@@ -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(", ");