[Libreoffice-commits] core.git: framework/inc

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Sep 7 12:20:33 UTC 2018


 framework/inc/helper/shareablemutex.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1a86f5643f3c36ead2f9aee42571664c2454ccf7
Author:     Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Fri Sep 7 07:38:29 2018 +0200
Commit:     Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Fri Sep 7 14:20:08 2018 +0200

    Cppcheck: make 1-argument ctors explicit
    
    Change-Id: I437988b238af961c6a3ac61ed4e93ea8206f6001
    Reviewed-on: https://gerrit.libreoffice.org/60123
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>

diff --git a/framework/inc/helper/shareablemutex.hxx b/framework/inc/helper/shareablemutex.hxx
index f28d524c7f07..6607e0f44b20 100644
--- a/framework/inc/helper/shareablemutex.hxx
+++ b/framework/inc/helper/shareablemutex.hxx
@@ -70,7 +70,7 @@ class FWI_DLLPUBLIC ShareableMutex
 class ShareGuard
 {
     public:
-        ShareGuard( ShareableMutex& rShareMutex ) :
+        explicit ShareGuard( ShareableMutex& rShareMutex ) :
             m_rShareMutex( rShareMutex )
         {
             m_rShareMutex.acquire();


More information about the Libreoffice-commits mailing list