Commit ae0bdd1f authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Add qAsConst to code that is not CI'ed so clazy didn't complain [yet]

It's not CI'ed because CI doesn't have a poppler new enough
parent 516fb89d
...@@ -820,7 +820,7 @@ void PDFGenerator::loadPages(QVector<Okular::Page*> &pagesVector, int rotation, ...@@ -820,7 +820,7 @@ void PDFGenerator::loadPages(QVector<Okular::Page*> &pagesVector, int rotation,
auto compareSignatureByFullyQualifiedName = [&fullyQualifiedName](const Okular::FormField *off) { return off->fullyQualifiedName() == fullyQualifiedName; }; auto compareSignatureByFullyQualifiedName = [&fullyQualifiedName](const Okular::FormField *off) { return off->fullyQualifiedName() == fullyQualifiedName; };
// See if the signature is in one of the already loaded page (i.e. 1 to end) // See if the signature is in one of the already loaded page (i.e. 1 to end)
for (Okular::Page *p : pagesVector) for (Okular::Page *p : qAsConst(pagesVector))
{ {
const QLinkedList<Okular::FormField*> pageFormFields = p->formFields(); const QLinkedList<Okular::FormField*> pageFormFields = p->formFields();
if (std::find_if(pageFormFields.begin(), pageFormFields.end(), compareSignatureByFullyQualifiedName) != pageFormFields.end()) if (std::find_if(pageFormFields.begin(), pageFormFields.end(), compareSignatureByFullyQualifiedName) != pageFormFields.end())
......
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