[kemoticons] make it compile without foreach
Summary: compile without foreach
Test Plan: autotest ok
Reviewers: dfaure, cullmann
Reviewed By: cullmann
Subscribers: cullmann, kde-frameworks-devel
Tags: Frameworks
Differential Revision: https://phabricator.kde.org/D20372