----------------------------------------------------------- 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
_______________________________________________ Okular-devel mailing list Okular-devel@kde.org https://mail.kde.org/mailman/listinfo/okular-devel