kshareddatacache: Correct the findEmptyPages loop boundary.
author Michael Pyne
()
committer Michael Pyne
()
commit d178c64d53fcc6ab50d35c4f178b21322b7fa357
tree 0a976c2b5a225638c4dac3cde14d3958d089a6f2
parent 1dd5c9d0534f053060697faac2b07688a9af4467
kshareddatacache: Correct the findEmptyPages loop boundary.

I did review the last patch to remove 'pagesNeeded' from the loop test,
but I missed that it has '+ 1' instead of '- 1' (which is still too
conservative). The correct thing is to not have any addition at all
since we use operator<() for the test.

Graciously pointed out by kde_pepo, thanks!
kdecore/util/kshareddatacache.cpp