1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:17:35 +00:00

LibIPC: Use default instead of an empty constructor/destructor

Default implementations allow for more optimizations.
See: https://pvs-studio.com/en/docs/warnings/v832/
This commit is contained in:
Brian Gianforcaro 2021-09-16 00:01:30 -07:00 committed by Andreas Kling
parent e2d154c74d
commit 0db46eecdc

View file

@ -19,7 +19,7 @@ class File {
public:
// Must have a default constructor, because LibIPC
// default-constructs arguments prior to decoding them.
File() { }
File() = default;
// Intentionally not `explicit`.
File(int fd)