desktop/source/app/cmdlineargs.cxx |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit ebd697df0cfed7078346e61c069891cf02c2cc54
Author:     Arnaud VERSINI <arnaud.vers...@libreoffice.org>
AuthorDate: Mon Sep 5 16:16:59 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Tue Sep 6 18:07:05 2022 +0200

    desktop : use a std::mutex instead of a osl::Mutex
    
    Change-Id: I149af335196eaa31cbd11965e1656c3dfe7431ed
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139440
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/desktop/source/app/cmdlineargs.cxx 
b/desktop/source/app/cmdlineargs.cxx
index 9f9251064fb2..f1949cbd0bbf 100644
--- a/desktop/source/app/cmdlineargs.cxx
+++ b/desktop/source/app/cmdlineargs.cxx
@@ -40,6 +40,8 @@
 #include <osl/file.hxx>
 #include <sal/log.hxx>
 
+#include <mutex>
+
 using namespace com::sun::star::lang;
 using namespace com::sun::star::uri;
 using namespace com::sun::star::uno;
@@ -198,8 +200,8 @@ CommandLineEvent CheckWebQuery(/* in,out */ OUString& arg, 
CommandLineEvent curE
     if (!arg.endsWithIgnoreAsciiCase(".iqy"))
         return curEvt;
 
-    static osl::Mutex aMutex;
-    osl::MutexGuard aGuard(aMutex);
+    static std::mutex aMutex;
+    std::lock_guard aGuard(aMutex);
 
     try
     {

Reply via email to