fix: solve linux build issue

This commit is contained in:
saturneric 2024-11-29 16:33:46 +01:00
parent d0a12fed6d
commit 419ab0972f

View File

@ -524,7 +524,7 @@ auto SignPlainText(int channel, const QString& key,
vmime::fields::CONTENT_DISPOSITION);
signature_part_content_disp_header_field->setValue("attachment");
signature_part_content_disp_header_field->setFilename(
vmime::word({"OpenPGP_signature.asc"}));
vmime::word(std::string{"OpenPGP_signature.asc"}));
auto public_key = UDUP(GFGpgPublicKey(channel, QDUP(key), 1));
if (public_key.isEmpty()) {
@ -742,7 +742,7 @@ auto SignEMLData(int channel, const QString& key,
vmime::fields::CONTENT_DISPOSITION);
signature_part_content_disp_header_field->setValue("attachment");
signature_part_content_disp_header_field->setFilename(
vmime::word({"OpenPGP_signature.asc"}));
vmime::word(std::string{"OpenPGP_signature.asc"}));
auto public_key = UDUP(GFGpgPublicKey(channel, QDUP(key), 1));
if (public_key.isEmpty()) {