diff options
author | Anders Bakken <anders.bakken@nokia.com> | 2009-06-19 01:55:10 (GMT) |
---|---|---|
committer | Anders Bakken <anders.bakken@nokia.com> | 2009-06-22 03:28:37 (GMT) |
commit | 6f3622e9e72e0a01763043678cf022a7c6917ffc (patch) | |
tree | 1822d2317b7a25185b00306f0c63b13ca48da3eb | |
parent | 96b4fc79fd4a7b4d9cdae924ccec5643e7a49cf0 (diff) | |
download | Qt-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.cpp | 2 |
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")) |