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
remotes/origin/work/aacid/use_mimes_open_dialog
Albert Astals Cid 6 years ago
parent 516fb89d94
commit ae0bdd1fe9
  1. 2
      generators/poppler/generator_pdf.cpp

@ -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())

Loading…
Cancel
Save