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
This commit is contained in:
Albert Astals Cid 2020-07-09 21:37:43 +02:00
parent 516fb89d94
commit ae0bdd1fe9

View file

@ -820,7 +820,7 @@ void PDFGenerator::loadPages(QVector<Okular::Page*> &pagesVector, int rotation,
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)
for (Okular::Page *p : pagesVector)
for (Okular::Page *p : qAsConst(pagesVector))
{
const QLinkedList<Okular::FormField*> pageFormFields = p->formFields();
if (std::find_if(pageFormFields.begin(), pageFormFields.end(), compareSignatureByFullyQualifiedName) != pageFormFields.end())