X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/b1fdd325ac311f299eedcd6725a56cc1e8d311a8..73bee151e048054bde9a39c5ad2efec25af9c77b:/include/stg/locker.h

diff --git a/include/stg/locker.h b/include/stg/locker.h
index 964f17cb..16b0323f 100644
--- a/include/stg/locker.h
+++ b/include/stg/locker.h
@@ -34,12 +34,12 @@
 class STG_LOCKER
 {
 public:
-    STG_LOCKER(pthread_mutex_t& m)
+    explicit STG_LOCKER(pthread_mutex_t& m)
         : mutex(&m)
         {
         pthread_mutex_lock(mutex);
         }
-    STG_LOCKER(pthread_mutex_t * m)
+    explicit STG_LOCKER(pthread_mutex_t * m)
         : mutex(m)
         {
         pthread_mutex_lock(mutex);