Fix off by one error in Cache::clear
ClosedPublic

Authored by davidedmundson on Jul 4 2018, 11:48 PM.

Details

Summary

beginRemoveRows args are int first, int last

i.e If you have 1 entry you should be calling
beginRemoveRows(0, 0);

BUG: 396175

Test Plan

Code review of a common mistake
Other usages in the same code were fine

Diff Detail

Repository
R159 KActivities Statistics
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
davidedmundson created this revision.Jul 4 2018, 11:48 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptJul 4 2018, 11:48 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
davidedmundson requested review of this revision.Jul 4 2018, 11:48 PM
broulik accepted this revision.Jul 5 2018, 8:24 AM
This revision is now accepted and ready to land.Jul 5 2018, 8:24 AM
This revision was automatically updated to reflect the committed changes.