Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 1c9e4917 authored by Laurent Montel's avatar Laurent Montel 😁

Fix clazy warning

parent 8f545694
......@@ -456,7 +456,9 @@ QVector<Content*> Content::attachments()
auto ct = contentType(false);
if (ct && ct->isMultipart() && !ct->isSubtype("related") && !ct->isSubtype("alternative")) {
Q_FOREACH (Content *child, contents()) {
const QVector<Content*> contentsList = contents();
result.reserve(contentsList.count());
Q_FOREACH (Content *child, contentsList) {
if (isAttachment(child))
result.push_back(child);
else
......
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