mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 19:35:32 +08:00
Fixed most Qt 5.14 deprecation warnings
This commit is contained in:
@@ -188,9 +188,9 @@ bool QJsonWebToken::setAlgorithmStr(const QString &strAlgorithm)
|
||||
// set algorithm
|
||||
m_strAlgorithm = strAlgorithm;
|
||||
// modify header
|
||||
m_jdocHeader = QJsonDocument::fromJson(QObject::trUtf8("{\"typ\": \"JWT\", \"alg\" : \"").toUtf8()
|
||||
m_jdocHeader = QJsonDocument::fromJson(QObject::tr("{\"typ\": \"JWT\", \"alg\" : \"").toUtf8()
|
||||
+ m_strAlgorithm.toUtf8()
|
||||
+ QObject::trUtf8("\"}").toUtf8());
|
||||
+ QObject::tr("\"}").toUtf8());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user