Commit 61bc6a97 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Add missing qAsConst()

parent 8bf2ad8d
...@@ -592,7 +592,7 @@ void MessageItem::subTreeToList(QList< MessageItem * > &list) ...@@ -592,7 +592,7 @@ void MessageItem::subTreeToList(QList< MessageItem * > &list)
if (!childList) { if (!childList) {
return; return;
} }
for (const auto child : *childList) { for (const auto child : qAsConst(*childList)) {
Q_ASSERT(child->type() == Item::Message); Q_ASSERT(child->type() == Item::Message);
static_cast<MessageItem *>(child)->subTreeToList(list); static_cast<MessageItem *>(child)->subTreeToList(list);
} }
......
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