mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-07 03:28:25 +03: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:
parent
e2d154c74d
commit
0db46eecdc
Notes:
sideshowbarker
2024-07-18 03:51:20 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/0db46eecdcd Pull-request: https://github.com/SerenityOS/serenity/pull/10053
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user