Swap curly brackets for round on LockGuard (#4610)

This commit is contained in:
Jesse Hills 2023-03-22 20:56:02 +13:00
parent 9d9725144d
commit 8d3896172d
No known key found for this signature in database
GPG key ID: BEAAE804EFD8E83A

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: