summaryrefslogtreecommitdiffstats
path: root/tools/shared/qtgradienteditor/qtgradientutils.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-01-28 15:58:25 (GMT)
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-01-28 15:58:25 (GMT)
commit7d66d263b93164ddc501050d07ddcc198921da8c (patch)
tree7f62f894cd301b99fc312a195749ba12f87b3401 /tools/shared/qtgradienteditor/qtgradientutils.cpp
parent2a82051815a3c8bb8fbb2b58dff5653c80d6fa33 (diff)
downloadQt-7d66d263b93164ddc501050d07ddcc198921da8c.zip
Qt-7d66d263b93164ddc501050d07ddcc198921da8c.tar.gz
Qt-7d66d263b93164ddc501050d07ddcc198921da8c.tar.bz2
Designer: Fix source code scanning issues.
Fix spelling errors, foreach()/QString usage, explicit constructors. Reviewed-By: Joerg Bornemann <joerg.bornemann@trolltech.com>
Diffstat (limited to 'tools/shared/qtgradienteditor/qtgradientutils.cpp')
-rw-r--r--tools/shared/qtgradienteditor/qtgradientutils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/shared/qtgradienteditor/qtgradientutils.cpp b/tools/shared/qtgradienteditor/qtgradientutils.cpp
index 9fa0324..083ba89 100644
--- a/tools/shared/qtgradienteditor/qtgradientutils.cpp
+++ b/tools/shared/qtgradienteditor/qtgradientutils.cpp
@@ -395,7 +395,7 @@ static QStringList styleSheetParameters(const QGradient &gradient)
static QStringList styleSheetStops(const QGradient &gradient)
{
QStringList result;
- foreach (QGradientStop stop, gradient.stops()) {
+ foreach (const QGradientStop &stop, gradient.stops()) {
const QColor color = stop.second;
const QString stopDescription = QLatin1String("stop:") + QString::number(stop.first) + QLatin1String(" rgba(")