qmleditor: Remove foreach / Q_FOREACH usage

Task-number: QTCREATORBUG-27464
Change-Id: Ic6d667d97a9708963f7c3e21aa9598ffe0f9c7b7
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Artem Sokolovskii
2022-12-19 13:23:53 +01:00
parent a7d8c4889e
commit 5cc77c4bf1
9 changed files with 30 additions and 23 deletions

View File

@@ -77,7 +77,8 @@ void GradientLine::readGradient()
if (m_useGradient) {
m_colorList.clear();
m_stops.clear();
foreach (const QGradientStop &stop, m_gradient.stops()) {
const QGradientStops stops = m_gradient.stops();
for (const QGradientStop &stop : stops) {
m_stops << stop.first;
m_colorList << stop.second;
}