Qt: Fix windows build of new jobs

--
See git log for changes.
This commit is contained in:
Andre Heinecke 2024-03-13 13:15:41 +01:00
parent 7158397c09
commit 67057d83f5
No known key found for this signature in database
GPG Key ID: 2978E9D40CBABA5C
6 changed files with 7 additions and 7 deletions

View File

@ -148,7 +148,7 @@ static QGpgMEDecryptVerifyJob::result_type decrypt_verify_from_filename(Context
{
Data indata;
#ifdef Q_OS_WIN
indata.setFileName(inputFilePath().toUtf8().constData());
indata.setFileName(inputFilePath.toUtf8().constData());
#else
indata.setFileName(QFile::encodeName(inputFilePath).constData());
#endif

View File

@ -172,7 +172,7 @@ static QGpgMEEncryptJob::result_type encrypt_to_filename(Context *ctx,
{
Data indata;
#ifdef Q_OS_WIN
indata.setFileName(inputFilePath().toUtf8().constData());
indata.setFileName(inputFilePath.toUtf8().constData());
#else
indata.setFileName(QFile::encodeName(inputFilePath).constData());
#endif

View File

@ -176,7 +176,7 @@ static QGpgMESignEncryptJob::result_type sign_encrypt_to_filename(Context *ctx,
{
Data indata;
#ifdef Q_OS_WIN
indata.setFileName(inputFilePath().toUtf8().constData());
indata.setFileName(inputFilePath.toUtf8().constData());
#else
indata.setFileName(QFile::encodeName(inputFilePath).constData());
#endif

View File

@ -174,7 +174,7 @@ static QGpgMESignJob::result_type sign_to_filename(Context *ctx,
{
Data indata;
#ifdef Q_OS_WIN
indata.setFileName(inputFilePath().toUtf8().constData());
indata.setFileName(inputFilePath.toUtf8().constData());
#else
indata.setFileName(QFile::encodeName(inputFilePath).constData());
#endif

View File

@ -135,14 +135,14 @@ static QGpgMEVerifyDetachedJob::result_type verify_from_filename(Context *ctx,
{
Data signatureData;
#ifdef Q_OS_WIN
signatureData.setFileName(signatureFilePath().toUtf8().constData());
signatureData.setFileName(signatureFilePath.toUtf8().constData());
#else
signatureData.setFileName(QFile::encodeName(signatureFilePath).constData());
#endif
Data signedData;
#ifdef Q_OS_WIN
signedData.setFileName(signedFilePath().toUtf8().constData());
signedData.setFileName(signedFilePath.toUtf8().constData());
#else
signedData.setFileName(QFile::encodeName(signedFilePath).constData());
#endif

View File

@ -140,7 +140,7 @@ static QGpgMEVerifyOpaqueJob::result_type verify_from_filename(Context *ctx,
{
Data indata;
#ifdef Q_OS_WIN
indata.setFileName(inputFilePath().toUtf8().constData());
indata.setFileName(inputFilePath.toUtf8().constData());
#else
indata.setFileName(QFile::encodeName(inputFilePath).constData());
#endif