fix some issues reported by clazy static analyser
Summary: fix other issues reported by Clazy
Test Plan: tests are OK
Reviewers: Elisa, ngraham, astippich, jguidon
Reviewed By: Elisa, astippich
Differential Revision: https://phabricator.kde.org/D23541