Commit 1a106aae authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port QStringRef

parent a5d7af4b
......@@ -145,7 +145,11 @@ static void parseAlgoString(const QString &algoString, int *size, Subkey::Pubkey
if (*algo != Subkey::AlgoUnknown) {
bool ok;
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
*size = lowered.rightRef(lowered.size() - 3).toInt(&ok);
#else
*size = QStringView(lowered).right(lowered.size() - 3).toInt(&ok);
#endif
if (!ok) {
qCWarning(KLEOPATRA_LOG) << "Could not extract size from: " << lowered;
*size = 3072;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment