Browse Source

LibThreading: Use default instead of an empty constructor/destructor

Default implementations allow for more optimizations.
See: https://pvs-studio.com/en/docs/warnings/v832/
Brian Gianforcaro 3 năm trước cách đây
mục cha
commit
744de5ec69
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Userland/Libraries/LibThreading/Mutex.h

+ 1 - 1
Userland/Libraries/LibThreading/Mutex.h

@@ -27,7 +27,7 @@ public:
         pthread_mutex_init(&m_mutex, &attr);
 #endif
     }
-    ~Mutex() { }
+    ~Mutex() = default;
 
     void lock();
     void unlock();