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

fixup[messagecomposer]: encryptjob - do cast only once.

parent ea20c418
...@@ -204,8 +204,8 @@ void EncryptJob::slotResult(KJob *job) ...@@ -204,8 +204,8 @@ void EncryptJob::slotResult(KJob *job)
if (subjobs().size() == 2) { if (subjobs().size() == 2) {
auto pjob = static_cast<ProtectedHeadersJob *>(subjobs().last()); auto pjob = static_cast<ProtectedHeadersJob *>(subjobs().last());
if (pjob) { if (pjob) {
Q_ASSERT(dynamic_cast<ContentJobBase *>(job)); auto cjob =dynamic_cast<ContentJobBase *>(job);
auto cjob = static_cast<ContentJobBase *>(job); Q_ASSERT(cjob);
pjob->setContent(cjob->content()); pjob->setContent(cjob->content());
} }
} }
......
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