From 0db46eecdcd39185d099b580aef56e7c0183baaf Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Thu, 16 Sep 2021 00:01:30 -0700 Subject: [PATCH] LibIPC: Use default instead of an empty constructor/destructor Default implementations allow for more optimizations. See: https://pvs-studio.com/en/docs/warnings/v832/ --- Userland/Libraries/LibIPC/File.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibIPC/File.h b/Userland/Libraries/LibIPC/File.h index d0a78f6ae0..be5a50cda3 100644 --- a/Userland/Libraries/LibIPC/File.h +++ b/Userland/Libraries/LibIPC/File.h @@ -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)