Commit e3c14b9f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Const'ify more pointer

parent f7b698b1
Pipeline #34647 passed with stage
in 34 minutes and 39 seconds
......@@ -235,7 +235,11 @@ void EncryptJob::process()
qCDebug(MESSAGECOMPOSER_LOG) << "got backend, starting job";
QGpgME::EncryptJob *eJob = proto->encryptJob(!d->binaryHint(d->format), d->format == Kleo::InlineOpenPGPFormat);
QObject::connect(eJob, &QGpgME::EncryptJob::result, this, [this, d](const GpgME::EncryptionResult &result, const QByteArray &cipherText, const QString &auditLogAsHtml, const GpgME::Error &auditLogError) {
QObject::connect(eJob, &QGpgME::EncryptJob::result, this, [this, d](const GpgME::EncryptionResult &result,
const QByteArray &cipherText,
const QString &auditLogAsHtml, const GpgME::Error &auditLogError) {
Q_UNUSED(auditLogAsHtml);
Q_UNUSED(auditLogError);
if (result.error()) {
setError(result.error().code());
setErrorText(QString::fromLocal8Bit(result.error().asString()));
......
......@@ -61,8 +61,8 @@ private:
void internalEnter();
void internalExit();
KMime::Content *mNode = nullptr;
HtmlWriter *mWriter = nullptr;
KMime::Content *const mNode;
HtmlWriter *const mWriter;
};
// Make sure the whole content is relative, so that nothing is painted over the header
......
......@@ -24,10 +24,9 @@ public:
~InvitationSettingsPrivate()
{
delete mInvitationUi;
mInvitationUi = nullptr;
}
Ui_InvitationSettings *mInvitationUi = nullptr;
Ui_InvitationSettings *const mInvitationUi;
};
InvitationSettings::InvitationSettings(QWidget *parent)
......
......@@ -25,7 +25,7 @@ public:
delete mPrintingUi;
}
Ui_PrintingSettings *mPrintingUi = nullptr;
Ui_PrintingSettings *const mPrintingUi;
};
PrintingSettings::PrintingSettings(QWidget *parent)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment