KDE EDU: Fix Marble code checker issues

completed by: Mayank Madan

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 EDU applications here: EBN Krazy Issues for KDE EDU applications

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

The "contrib" classes inside the mex directory (e.g. astrolib and planetSat classes) are a bit of an exception: It's third party code that will later on be moved into a 3rdparty/contrib directory. So making changes to the code in this particular case will not have a real benefit.

Check out of marble: git clone git://anongit.kde.org/marble.git

Mentor: Kevin Krammer <krammer@kde.org>, IRC: krake in #kde-edu, #kde-soc