diff options
author | Nicolas Fella <nicolas.fella@gmx.de> | 2021-01-10 17:09:43 +0100 |
---|---|---|
committer | Nicolas Fella <nicolas.fella@gmx.de> | 2021-01-12 13:32:20 +0100 |
commit | 80e1cd8c5d9a5027f86bd2d233d2984b11d54d51 (patch) | |
tree | 0de5a1a92de960f8bd94a3d202b0860aa1a119ea | |
parent | bd46a52f9f968e811178e460f395fcf5257c0d93 (diff) | |
download | kconfig-80e1cd8c5d9a5027f86bd2d233d2984b11d54d51.tar.gz kconfig-80e1cd8c5d9a5027f86bd2d233d2984b11d54d51.tar.bz2 |
Port to QRecursiveMutex
Using QMutex in recursive mode is deprecated.
-rw-r--r-- | src/core/kauthorized.cpp | 6 |
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) |