aboutsummaryrefslogtreecommitdiff
path: root/src/core/kauthorized.cpp
diff options
context:
space:
mode:
authorNicolas Fella <nicolas.fella@gmx.de>2021-01-10 17:09:43 +0100
committerNicolas Fella <nicolas.fella@gmx.de>2021-01-12 13:32:20 +0100
commit80e1cd8c5d9a5027f86bd2d233d2984b11d54d51 (patch)
tree0de5a1a92de960f8bd94a3d202b0860aa1a119ea /src/core/kauthorized.cpp
parentbd46a52f9f968e811178e460f395fcf5257c0d93 (diff)
downloadkconfig-80e1cd8c5d9a5027f86bd2d233d2984b11d54d51.tar.gz
kconfig-80e1cd8c5d9a5027f86bd2d233d2984b11d54d51.tar.bz2
Port to QRecursiveMutex
Using QMutex in recursive mode is deprecated.
Diffstat (limited to 'src/core/kauthorized.cpp')
-rw-r--r--src/core/kauthorized.cpp6
1 files changed, 3 insertions, 3 deletions
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 <kconfiggroup.h>
-#include <QMutex>
+#include <QRecursiveMutex>
#include <QMutexLocker>
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<URLActionRule> urlActionRestrictions;
- QMutex mutex;
+ QRecursiveMutex mutex;
};
Q_GLOBAL_STATIC(KAuthorizedPrivate, authPrivate)