diff options
author | Mikhail Svetkin <mikhail.svetkin@qt.io> | 2018-11-19 16:12:04 +0500 |
---|---|---|
committer | Mikhail Svetkin <mikhail.svetkin@qt.io> | 2018-11-27 22:28:15 +0000 |
commit | d958f830e8b5b27e88a7fe9d14aa61d832a6756c (patch) | |
tree | 3a8fddb91b44ad52118646d16f082576370e0d20 /src/quick/scenegraph | |
parent | 4eadcd6ebaec5a172b874bbb28efe06f3b473817 (diff) |
QSGSoftwareInternalRectangleNode: Remove unnecessary loop iterations
Change-Id: I95ae475cfbab432e3ac4d49384d4861185d3cb1b
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/quick/scenegraph')
-rw-r--r-- | src/quick/scenegraph/adaptations/software/qsgsoftwareinternalrectanglenode.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/scenegraph/adaptations/software/qsgsoftwareinternalrectanglenode.cpp b/src/quick/scenegraph/adaptations/software/qsgsoftwareinternalrectanglenode.cpp index 868fbf1a90..f50fa00b0b 100644 --- a/src/quick/scenegraph/adaptations/software/qsgsoftwareinternalrectanglenode.cpp +++ b/src/quick/scenegraph/adaptations/software/qsgsoftwareinternalrectanglenode.cpp @@ -121,7 +121,7 @@ void QSGSoftwareInternalRectangleNode::setGradientStops(const QGradientStops &st for (const QGradientStop &stop : qAsConst(stops)) { if (stop.first < 0.0 || stop.first > 1.0) { needsNormalization = true; - continue; + break; } } |