D21202: Added basic JavaScript functions to support animated PDF
Oliver Sander
noreply at phabricator.kde.org
Thu May 16 05:53:56 BST 2019
sander added inline comments.
INLINE COMMENTS
> kjs_document.cpp:139
> +
> + for ( Page * pIt : doc->m_pagesVector )
> + {
As you were using const iterators before: Shouldn't this be `qAsConst(doc->m_pagesVector)` to avoid unnecessary detaching?
> kjs_document.cpp:142
> + const QLinkedList< Okular::FormField * > pageFields = pIt->formFields();
> + numFields += pageFields.size();
> + }
Why not simply `numFields += pIt->formFields()` ?
REPOSITORY
R223 Okular
REVISION DETAIL
https://phabricator.kde.org/D21202
To: joaonetto, aacid, #okular
Cc: sander, okular-devel, joaonetto, tfella, ngraham, darcyshen, aacid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20190516/62910864/attachment-0001.html>
More information about the Okular-devel
mailing list