diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-12-14 16:15:14 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-12-14 16:17:00 +0100 |
commit | 46a57c7f5905b8d82f1c810df8b6cc5a7f5970a6 (patch) | |
tree | e4cc75e31b5a1018c0daf398431b802b24bdb0a9 | |
parent | e49d6cc7e96016f4586c9c183b5642bd3114f28b (diff) | |
download | serenity-46a57c7f5905b8d82f1c810df8b6cc5a7f5970a6.zip |
IPCCompiler: Use const references for message constructor parameters
-rw-r--r-- | DevTools/IPCCompiler/main.cpp | 3 |
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(", "); |