fix some issues reported by clazy
Summary: fix some issues reported by clazy
Test Plan: tests are OK
Reviewers: Baloo, Frameworks, bruns
Reviewed By: Baloo, bruns
Subscribers: kde-frameworks-devel, bruns
Tags: Frameworks, Baloo
Differential Revision: https://phabricator.kde.org/D12578