[network/ruqola] src/core/encryption: Const variable

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 96037f4107cbbb0a54ce2a337ad1b904d09d202e by Laurent Montel.
Committed on 03/08/2026 at 05:30.
Pushed by mlaurent into branch 'master'.

Const variable

M  +1    -1    src/core/encryption/encryptionutils.cpp

https://invent.kde.org/network/ruqola/-/commit/96037f4107cbbb0a54ce2a337ad1b904d09d202e

diff --git a/src/core/encryption/encryptionutils.cpp b/src/core/encryption/encryptionutils.cpp
index 4cc740e4d3..8d997deb22 100644
--- a/src/core/encryption/encryptionutils.cpp
+++ b/src/core/encryption/encryptionutils.cpp
@@ -82,7 +82,7 @@ QByteArray EncryptionUtils::exportJWKPublicKey(RSA *rsaKey)
     jwkObj[QStringLiteral("key_ops")] = QJsonArray() << QStringLiteral("encrypt");
     jwkObj[QStringLiteral("ext")] = true;
 
-    QJsonDocument doc(jwkObj);
+    const QJsonDocument doc(jwkObj);
     return doc.toJson(QJsonDocument::Compact);
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.