Fix build warnings and clear up init() code for items
Summary: Minor changes to remove all build warnings
Test Plan: Run kreportexample
Reviewers: staniek
Reviewed By: staniek
Tags: KReport
Differential Revision: https://phabricator.kde.org/D3891