mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 01:06:01 +03:00
9b483625e6
Currently, the generated IPC decoders will default-construct the type to be decoded, then pass that value by reference to the concrete decoder. This, of course, requires that the type is default-constructible. This was an issue for decoding Variants, which had to require the first type in the Variant list is Empty, to ensure it is default constructible. Further, this made it possible for values to become uninitialized in user-defined decoders. This patch makes the decoder interface such that the concrete decoders themselves contruct the decoded type upon return from the decoder. To do so, the default decoders in IPC::Decoder had to be moved to the IPC namespace scope, as these decoders are now specializations instead of overloaded methods (C++ requires specializations to be in a namespace scope). |
||
---|---|---|
.. | ||
Capabilities.cpp | ||
Capabilities.h | ||
Client.cpp | ||
Client.h | ||
ElementLocationStrategies.cpp | ||
ElementLocationStrategies.h | ||
Error.cpp | ||
Error.h | ||
ExecuteScript.cpp | ||
ExecuteScript.h | ||
Response.cpp | ||
Response.h | ||
Screenshot.cpp | ||
Screenshot.h | ||
TimeoutsConfiguration.cpp | ||
TimeoutsConfiguration.h |