summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergio Martins <sergio.martins@kdab.com>2015-07-04 10:50:17 +0100
committerPier Luigi Fiorini <pierluigi.fiorini@gmail.com>2015-07-04 10:11:22 +0000
commitab3b7de2405f92cd01efb8a7717a4924c7630d5f (patch)
treeca79951c30f39d2983fd57a1475db840ad97dd0c
parent85956a9149c578d7a750fad0dc66e89eaa337ef5 (diff)
downloadqtwayland-ab3b7de2405f92cd01efb8a7717a4924c7630d5f.tar.gz
qtwayland-ab3b7de2405f92cd01efb8a7717a4924c7630d5f.tar.bz2
qtwayland-ab3b7de2405f92cd01efb8a7717a4924c7630d5f.zip
Use by-ref in foreach where T is non-trivial
Change-Id: Iac40929aebc1e0f507b729b0c01a2ccb18516c37 Reviewed-by: Giulio Camuffo <giulio.camuffo@jollamobile.com>
-rw-r--r--src/client/qwaylandcursor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/qwaylandcursor.cpp b/src/client/qwaylandcursor.cpp
index 8e8293a0..8dfc95c3 100644
--- a/src/client/qwaylandcursor.cpp
+++ b/src/client/qwaylandcursor.cpp
@@ -161,7 +161,7 @@ wl_cursor *QWaylandCursor::requestCursor(WaylandCursor shape)
return NULL;
QList<QByteArray> cursorNames = mCursorNamesMap.values(shape);
- foreach (QByteArray name, cursorNames) {
+ foreach (const QByteArray &name, cursorNames) {
cursor = wl_cursor_theme_get_cursor(mCursorTheme, name.constData());
if (cursor) {
mCursors.insert(shape, cursor);