avoid unnecessary copies by using const & in foreach

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=800783
This commit is contained in:
Albert Astals Cid
2008-04-24 20:41:04 +00:00
parent ca7c39ffb7
commit 1222b0e15b
4 changed files with 5 additions and 5 deletions

View File

@@ -94,7 +94,7 @@ void CopyInputDialog::setSelectionChecked(bool checked)
if (selected.count() > 1)
{
foreach(QModelIndex index,selected)
foreach(const QModelIndex &index,selected)
setRowChecked(index.row(),checked);
}
else