summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorArnaud VERSINI <arnaud.versini@libreoffice.org>2022-09-05 16:16:59 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-09-06 18:07:05 +0200
commitebd697df0cfed7078346e61c069891cf02c2cc54 (patch)
tree07dfa28705418ba1375bf7bc7b5fbcef36b10a44 /desktop
parent604edde1946d4e0ced67ad9a7514253a6fe7fa40 (diff)
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.grandin@collabora.co.uk>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/cmdlineargs.cxx6
1 files changed, 4 insertions, 2 deletions
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
{