Fix compatibility with Qt 6 QMutex's non-recursive

QMutex in Qt 6 cannot be recursive. So don't call the constructor to pass the
option that isn't needed.

Change-Id: I9709abb1c3734e10a7defffd1607e76745b5cf0a
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Thiago Macieira
2020-04-21 10:56:19 -07:00
parent 96cd1bffae
commit 0bd53651d4

View File

@@ -61,7 +61,7 @@ public:
Q_GLOBAL_STATIC(QLibrary, gUvscLibrary)
Q_GLOBAL_STATIC(QVector<UvscClient *>, gUvscClients)
static QMutex gUvscsGuard(QMutex::NonRecursive);
static QMutex gUvscsGuard;
static QStringList childrenINamesOf(const QString &parentIName, const QStringList &allINames)
{