summaryrefslogtreecommitdiffstats
path: root/examples/embedded/flickable/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/embedded/flickable/main.cpp')
-rw-r--r--examples/embedded/flickable/main.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/embedded/flickable/main.cpp b/examples/embedded/flickable/main.cpp
index 6d8cc779dd..15b282aaa5 100644
--- a/examples/embedded/flickable/main.cpp
+++ b/examples/embedded/flickable/main.cpp
@@ -79,9 +79,8 @@ public:
QStringList colors = colorPairs(999);
for (int i = 0; i < colors.count(); ++i) {
- QString c = colors[i];
- QString str;
- str.sprintf("%4d", i + 1);
+ const QString c = colors[i];
+ const QString str = QString::asprintf("%4d", i + 1);
m_colorNames << (str + " " + c);
QStringList duet = c.split(' ');