Преглед на файлове

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 години
родител
ревизия
744de5ec69
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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();