mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02: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:
Notes:
github-actions[bot]
2025-02-17 16:38:37 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/71cb04d8cbf Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3601 Reviewed-by: https://github.com/trflynn89 ✅
@@ -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};");
|
||||
|
||||
Reference in New Issue
Block a user