summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/qtreeview-dnd/dragdropmodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/snippets/qtreeview-dnd/dragdropmodel.cpp')
-rw-r--r--doc/src/snippets/qtreeview-dnd/dragdropmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/snippets/qtreeview-dnd/dragdropmodel.cpp b/doc/src/snippets/qtreeview-dnd/dragdropmodel.cpp
index 2d01240..620a716 100644
--- a/doc/src/snippets/qtreeview-dnd/dragdropmodel.cpp
+++ b/doc/src/snippets/qtreeview-dnd/dragdropmodel.cpp
@@ -123,7 +123,7 @@ QMimeData *DragDropModel::mimeData(const QModelIndexList &indexes) const
QDataStream stream(&encodedData, QIODevice::WriteOnly);
- foreach (QModelIndex index, indexes) {
+ foreach (const QModelIndex &index, indexes) {
if (index.isValid()) {
QString text = data(index, Qt::DisplayRole).toString();
stream << index.internalId() << index.row() << index.column() << text;