Commit 0760b595 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

const'ify pointer

parent bfd589b0
Pipeline #59164 passed with stage
in 38 minutes and 50 seconds
......@@ -21,9 +21,9 @@ using namespace MimeTreeParser;
QGpgMEJobExecutor::QGpgMEJobExecutor(QObject *parent)
: QObject(parent)
, mEventLoop(new QEventLoop(this))
{
setObjectName(QStringLiteral("KleoJobExecutor"));
mEventLoop = new QEventLoop(this);
}
GpgME::VerificationResult QGpgMEJobExecutor::exec(QGpgME::VerifyDetachedJob *job, const QByteArray &signature, const QByteArray &signedData)
......
......@@ -50,7 +50,7 @@ private Q_SLOTS:
void importResult(const GpgME::ImportResult &result);
private:
QEventLoop *mEventLoop = nullptr;
QEventLoop *const mEventLoop;
GpgME::VerificationResult mVerificationResult;
GpgME::DecryptionResult mDecryptResult;
GpgME::ImportResult mImportResult;
......
......@@ -156,7 +156,7 @@ public:
Q_REQUIRED_RESULT QString htmlContent() const override;
private:
bool mOnlyOneMimePart;
const bool mOnlyOneMimePart;
};
/**
* @brief The MessagePartList class
......@@ -213,7 +213,7 @@ private:
KMMsgSignatureState mSignatureState;
KMMsgEncryptionState mEncryptionState;
bool mDecryptMessage;
const bool mDecryptMessage;
};
/**
* @brief The AttachmentMessagePart class
......
......@@ -43,11 +43,11 @@ public:
Interface::ObjectTreeSource *source() const override;
private:
KMime::Content *mTopLevelContent = nullptr;
KMime::Content *mContent = nullptr;
NodeHelper *mNodeHelper = nullptr;
ObjectTreeParser *mObjectTreeParser = nullptr;
ProcessResult *mProcessResult = nullptr;
KMime::Content *const mTopLevelContent;
KMime::Content *const mContent;
NodeHelper *const mNodeHelper;
ObjectTreeParser *const mObjectTreeParser;
ProcessResult *const mProcessResult;
};
}
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