Remove foreach in KmPlot in favor of range-based loops
Summary: foreach is obsolete
Test Plan:
- Compile, install, run.
- Create some plot (sin(x)), save it, export it, close it, load it.
- Use equation editor.
Reviewers: KDE Edu, aacid
Reviewed By: aacid
Subscribers: aacid, kde-edu
Tags: KDE Edu
Differential Revision: https://phabricator.kde.org/D24212