[plasma-framework] make it compiles without foreach
Summary: compile without foreach
Test Plan: autotest ok
Reviewers: dfaure, apol
Reviewed By: dfaure, apol
Subscribers: ahmadsamir, nicolasfella, broulik, apol, kde-frameworks-devel
Tags: Frameworks
Differential Revision: https://phabricator.kde.org/D19913