Fix warning C4244 'argument': conversion from 'size_t' to 'uint', possible loss of data

Use explicit cast.

Signed-off-by: Sven Strickroth <email@cs-ware.de>
This commit is contained in:
Sven Strickroth 2025-11-08 14:08:37 +01:00
parent bba7700f19
commit 1b56a81bbe

View file

@ -374,8 +374,8 @@ namespace KeeShareSettings
QByteArray rsaKeySerialized;
QDataStream stream(&rsaKeySerialized, QIODevice::WriteOnly);
stream.writeBytes("ssh-rsa", 7);
stream.writeBytes(reinterpret_cast<const char*>(rsaE.data()), rsaE.size());
stream.writeBytes(reinterpret_cast<const char*>(rsaN.data()), rsaN.size());
stream.writeBytes(reinterpret_cast<const char*>(rsaE.data()), static_cast<uint>(rsaE.size()));
stream.writeBytes(reinterpret_cast<const char*>(rsaN.data()), static_cast<uint>(rsaN.size()));
return xmlSerialize([&](QXmlStreamWriter& writer) {
writer.writeStartElement("Signature");