Core: use some performance recommendations from cppcheck
Core: fix tiny error found by cppcheck
Daemon: use tiny performance recommendation from cppcheck
Gtk UI: use some performance recommendations by cppcheck
Qt UI: use some performance recommendations by cppcheck