Simplify: Use locals instead of pointers
Summary:
If anything throwed we would have a memleak,
this is smaller and safer.
Reviewers: Konsole, hindenburg
Reviewed By: Konsole, hindenburg
Subscribers: konsole-devel
Tags: Konsole
Differential Revision: https://phabricator.kde.org/D13538