Fix types, improve readability
Summary:
These changes don't matter in the big picture but hopefully make the code easier to read.
Save a few bits by using the right types.
Reviewers: Plasma
Subscribers: zzag, broulik, plasma-devel
Tags: Plasma
Differential Revision: https://phabricator.kde.org/D14081