don't use temporaries when uneeded
Summary:
Remove unused variable
Compiled, Run. Trash still there.
Use copy ellision
Remove uneeded code
Reviewers: Dolphin, elvisangelaccio
Reviewed By: Dolphin, elvisangelaccio
Subscribers: elvisangelaccio, kfm-devel
Tags: Dolphin
Differential Revision: https://phabricator.kde.org/D13680