Verified Commit 3e3034f2 authored by Vladislav Glinsky's avatar Vladislav Glinsky
Browse files

Use qAsConst for implicitly-shared Qt containers

parent 298a1b1a
......@@ -38,7 +38,7 @@ KGpgRootNode::~KGpgRootNode()
{
// clear the parents in all children to signal them not to do any
// update signalling
for (KGpgNode *child: children)
for (KGpgNode *child: qAsConst(children))
child->setParent(nullptr);
}
......
......@@ -413,7 +413,7 @@ void KGpgExternalActions::slotDecryptionDone(int status)
} else {
if (!m_decryptionFailed.isEmpty()) {
QStringList failedFiles;
for (const QUrl &url : m_decryptionFailed)
for (const QUrl &url : qAsConst(m_decryptionFailed))
failedFiles.append(url.toDisplayString());
KMessageBox::errorList(nullptr,
i18np("Decryption of this file failed:", "Decryption of these files failed:",
......
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