[Okular-devel] Review Request: Several variables aren't 'const' in PageView::slotRelayoutPages when they probably should be

Stephen Anthony sa666666 at gmail.com
Wed Dec 21 14:32:03 UTC 2011


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/103486/
-----------------------------------------------------------

Review request for Okular.


Description
-------

The pageCount variable is used as a constant everywhere except one place, where it is incremented by a certain amount and then decremented by that same amount a few lines later.  This patch explicitly makes pageCount const, and takes care of the special case directly in the ternary if.  As a result of making pageCount const, several related variables are also made const.


Diffs
-----

  ui/pageview.cpp e6eb771 

Diff: http://git.reviewboard.kde.org/r/103486/diff/diff


Testing
-------

Tested with a few documents with differing page lengths in all viewmodes.


Thanks,

Stephen Anthony

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20111221/199fc4f9/attachment.html>


More information about the Okular-devel mailing list