Przeglądaj źródła

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 lat temu
rodzic
commit
744de5ec69
1 zmienionych plików z 1 dodań i 1 usunięć
  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);
         pthread_mutex_init(&m_mutex, &attr);
 #endif
 #endif
     }
     }
-    ~Mutex() { }
+    ~Mutex() = default;
 
 
     void lock();
     void lock();
     void unlock();
     void unlock();