Swap curly brackets for round on LockGuard (#4610)

This commit is contained in:
Jesse Hills 2023-03-22 20:56:02 +13:00 committed by GitHub
parent d52e425ba2
commit a1eb3b8475
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -547,7 +547,7 @@ class Mutex {
*/ */
class LockGuard { class LockGuard {
public: public:
LockGuard(Mutex &mutex) : mutex_{mutex} { mutex_.lock(); } LockGuard(Mutex &mutex) : mutex_(mutex) { mutex_.lock(); }
~LockGuard() { mutex_.unlock(); } ~LockGuard() { mutex_.unlock(); }
private: private: