mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
IPCCompiler: Allow arguments to not be default-constructible
All fields are always initialized, so we don't need to initialize them by default. This lets us send types over IPC that can't be default-constructed, such as a Variant without Empty.
This commit is contained in:
parent
b3b7e76c10
commit
71cb04d8cb
|
|
@ -447,7 +447,7 @@ private:)~~~");
|
|||
parameter_generator.set("parameter.type", parameter.type);
|
||||
parameter_generator.set("parameter.name", parameter.name);
|
||||
parameter_generator.appendln(R"~~~(
|
||||
@parameter.type@ m_@parameter.name@ {};)~~~");
|
||||
@parameter.type@ m_@parameter.name@;)~~~");
|
||||
}
|
||||
|
||||
message_generator.appendln("\n};");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user