mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-08 12:19:37 +03:00
IPCCompiler: Use const references for message constructor parameters
This commit is contained in:
parent
e49d6cc7e9
commit
46a57c7f59
Notes:
sideshowbarker
2024-07-19 10:51:37 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/46a57c7f590
@ -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(", ");
|
||||
|
Loading…
Reference in New Issue
Block a user