KDE PIM: Fix kdepim-runtime code checker issues

completed by: Mohammed Nafees

mentors: Kevin Krammer

KDE runs a tool that checks cdoe for common potential errors or provides recommendations on make code cleaner.

You can find the issues for KDE's PIM runtime here: EBN Krazy Issues for KDE PIM runtime

The task is to fix 31 of any of those and submit them as a review request for group "kdepim" on KDE Review Board

Go here for additional pointers