diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-01-12 19:10:40 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-01-12 19:10:40 +0000 |
commit | 4fc30e4e13ecfbe29fbef3b5caf96218eab30b68 (patch) | |
tree | 76daccda237a1d7020464e1de2c699391c86cf92 /net-libs/signond/files/0004-Port-away-from-deprecated-QString-SplitBehavior.patch | |
parent | 4c4e8e9bf6d1ef49be600d77fcbbd7be716aece7 (diff) |
gentoo auto-resync : 12:01:2024 - 19:10:40
Diffstat (limited to 'net-libs/signond/files/0004-Port-away-from-deprecated-QString-SplitBehavior.patch')
-rw-r--r-- | net-libs/signond/files/0004-Port-away-from-deprecated-QString-SplitBehavior.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/net-libs/signond/files/0004-Port-away-from-deprecated-QString-SplitBehavior.patch b/net-libs/signond/files/0004-Port-away-from-deprecated-QString-SplitBehavior.patch new file mode 100644 index 000000000000..7bf3fe2db650 --- /dev/null +++ b/net-libs/signond/files/0004-Port-away-from-deprecated-QString-SplitBehavior.patch @@ -0,0 +1,38 @@ +https://gitlab.com/accounts-sso/signond/-/merge_requests/36 + +From b48507f58d66356fbcdd349d14e6e145a4a60bbd Mon Sep 17 00:00:00 2001 +From: Nicolas Fella <nicolas.fella@gmx.de> +Date: Tue, 5 Jul 2022 17:38:08 +0200 +Subject: [PATCH 04/11] Port away from deprecated QString::SplitBehavior + +--- + src/signond/signonidentityinfo.cpp | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/src/signond/signonidentityinfo.cpp b/src/signond/signonidentityinfo.cpp +index a5ae15d..bf7985f 100644 +--- a/src/signond/signonidentityinfo.cpp ++++ b/src/signond/signonidentityinfo.cpp +@@ -27,6 +27,7 @@ + #include <QDBusArgument> + #include <QDataStream> + #include <QDebug> ++#include <QtGlobal> + + namespace SignonDaemonNS { + +@@ -104,7 +105,11 @@ bool SignonIdentityInfo::checkMethodAndMechanism(const QString &method, + * mechanisms is allowed. + */ + QStringList mechanisms = ++#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0) ++ mechanism.split(QLatin1Char(' '), Qt::SkipEmptyParts); ++#else + mechanism.split(QLatin1Char(' '), QString::SkipEmptyParts); ++#endif + + /* if the list is empty of it has only one element, then we already know + * that it didn't pass the previous checks */ +-- +2.43.0 + |