From 80e1cd8c5d9a5027f86bd2d233d2984b11d54d51 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Sun, 10 Jan 2021 17:09:43 +0100 Subject: Port to QRecursiveMutex Using QMutex in recursive mode is deprecated. --- src/core/kauthorized.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core/kauthorized.cpp') diff --git a/src/core/kauthorized.cpp b/src/core/kauthorized.cpp index 8e459d47..3a06c887 100644 --- a/src/core/kauthorized.cpp +++ b/src/core/kauthorized.cpp @@ -21,7 +21,7 @@ #include -#include +#include #include extern bool kde_kiosk_exception; @@ -160,7 +160,7 @@ class KAuthorizedPrivate { public: KAuthorizedPrivate() - : actionRestrictions(false), blockEverything(false), mutex(QMutex::Recursive) + : actionRestrictions(false), blockEverything(false) { Q_ASSERT_X(QCoreApplication::instance(), "KAuthorizedPrivate()", "There has to be an existing QCoreApplication::instance() pointer"); @@ -181,7 +181,7 @@ public: bool actionRestrictions : 1; bool blockEverything : 1; QList urlActionRestrictions; - QMutex mutex; + QRecursiveMutex mutex; }; Q_GLOBAL_STATIC(KAuthorizedPrivate, authPrivate) -- cgit v1.2.1