From 48d13641883e4fdb8472519316934fe88e3485b5 Mon Sep 17 00:00:00 2001 From: Maxim Sharabayko Date: Tue, 12 Apr 2022 16:08:51 +0200 Subject: [PATCH] [core] Added explicit to the Scoped and UniqueLock constructors --- srtcore/sync.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srtcore/sync.h b/srtcore/sync.h index b68061cf6..6dda000af 100644 --- a/srtcore/sync.h +++ b/srtcore/sync.h @@ -344,7 +344,7 @@ class SRT_ATTR_SCOPED_CAPABILITY ScopedLock { public: SRT_ATTR_ACQUIRE(m) - ScopedLock(Mutex& m); + explicit ScopedLock(Mutex& m); SRT_ATTR_RELEASE() ~ScopedLock(); @@ -362,7 +362,7 @@ class SRT_ATTR_SCOPED_CAPABILITY UniqueLock public: SRT_ATTR_ACQUIRE(m) - UniqueLock(Mutex &m); + explicit UniqueLock(Mutex &m); SRT_ATTR_RELEASE() ~UniqueLock();