summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnders Bakken <anders.bakken@nokia.com>2009-06-19 01:55:10 (GMT)
committerAnders Bakken <anders.bakken@nokia.com>2009-06-22 03:28:37 (GMT)
commit6f3622e9e72e0a01763043678cf022a7c6917ffc (patch)
tree1822d2317b7a25185b00306f0c63b13ca48da3eb
parent96b4fc79fd4a7b4d9cdae924ccec5643e7a49cf0 (diff)
downloadQt-6f3622e9e72e0a01763043678cf022a7c6917ffc.zip
Qt-6f3622e9e72e0a01763043678cf022a7c6917ffc.tar.gz
Qt-6f3622e9e72e0a01763043678cf022a7c6917ffc.tar.bz2
Use const ref for foreach
Reviewed-by: TrustMe
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp
index 5d89994..b2e424c 100644
--- a/src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp
+++ b/src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp
@@ -725,7 +725,7 @@ void QDirectFBScreenPrivate::setFlipFlags(const QStringList &args)
const QStringList flips = flipRegexp.cap(1).split(QLatin1Char(','),
QString::SkipEmptyParts);
flipFlags = DSFLIP_NONE;
- foreach (QString flip, flips) {
+ foreach(const QString &flip, flips) {
if (flip == QLatin1String("wait"))
flipFlags = DFBSurfaceFlipFlags(flipFlags | DSFLIP_WAIT);
else if (flip == QLatin1String("blit"))