Commit f1b743e0 authored by Sandro Knauß's avatar Sandro Knauß
Browse files

costify

parent 007b10e8
......@@ -183,7 +183,7 @@ void NodeHelper::clear()
mDisplayHiddenNodes.clear();
}
void NodeHelper::setEncryptionState(KMime::Content *node, const KMMsgEncryptionState state)
void NodeHelper::setEncryptionState(const KMime::Content *node, const KMMsgEncryptionState state)
{
mEncryptionState[node] = state;
}
......@@ -193,7 +193,7 @@ KMMsgEncryptionState NodeHelper::encryptionState(const KMime::Content *node) con
return mEncryptionState.value(node, KMMsgNotEncrypted);
}
void NodeHelper::setSignatureState(KMime::Content *node, const KMMsgSignatureState state)
void NodeHelper::setSignatureState(const KMime::Content *node, const KMMsgSignatureState state)
{
mSignatureState[node] = state;
}
......
......@@ -65,10 +65,10 @@ public:
void clear();
void forceCleanTempFiles();
void setEncryptionState(KMime::Content *node, const KMMsgEncryptionState state);
void setEncryptionState(const KMime::Content *node, const KMMsgEncryptionState state);
KMMsgEncryptionState encryptionState(const KMime::Content *node) const;
void setSignatureState(KMime::Content *node, const KMMsgSignatureState state);
void setSignatureState(const KMime::Content *node, const KMMsgSignatureState state);
KMMsgSignatureState signatureState(const KMime::Content *node) const;
KMMsgSignatureState overallSignatureState(KMime::Content *node) const;
......
......@@ -464,7 +464,7 @@ void ProcessResult::setIsImage(bool image)
mIsImage = image;
}
void ProcessResult::adjustCryptoStatesOfNode(KMime::Content *node) const
void ProcessResult::adjustCryptoStatesOfNode(const KMime::Content *node) const
{
if ((inlineSignatureState() != KMMsgNotSigned) ||
(inlineEncryptionState() != KMMsgNotEncrypted)) {
......
......@@ -101,7 +101,7 @@ public:
bool isImage() const;
void setIsImage(bool image);
void adjustCryptoStatesOfNode(KMime::Content *node) const;
void adjustCryptoStatesOfNode(const KMime::Content* node) const;
private:
KMMsgSignatureState mInlineSignatureState;
......
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