From 744de5ec6985dac4a0f997eb58420c0b7b0330a0 Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Thu, 16 Sep 2021 00:20:03 -0700 Subject: [PATCH] LibThreading: 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/LibThreading/Mutex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibThreading/Mutex.h b/Userland/Libraries/LibThreading/Mutex.h index 209598cb8f..05ef1d1373 100644 --- a/Userland/Libraries/LibThreading/Mutex.h +++ b/Userland/Libraries/LibThreading/Mutex.h @@ -27,7 +27,7 @@ public: pthread_mutex_init(&m_mutex, &attr); #endif } - ~Mutex() { } + ~Mutex() = default; void lock(); void unlock();