From fa48b03face0e915032455c37addc8be5dfcd28d Mon Sep 17 00:00:00 2001 From: Gioacchino Mazzurco Date: Fri, 5 Nov 2021 15:31:08 +0100 Subject: [PATCH] mark single argument RsStackMutex costructor explicit --- libretroshare/src/util/rsthreads.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretroshare/src/util/rsthreads.h b/libretroshare/src/util/rsthreads.h index d1ed91dc9..edec70472 100644 --- a/libretroshare/src/util/rsthreads.h +++ b/libretroshare/src/util/rsthreads.h @@ -105,7 +105,7 @@ class RsStackMutex { public: - RsStackMutex(RsMutex &mtx) : mMtx(mtx) + explicit RsStackMutex(RsMutex& mtx): mMtx(mtx) { mMtx.lock(); #ifdef RS_MUTEX_DEBUG