mirror of
https://github.com/KDE/konsole.git
synced 2026-05-18 19:47:16 -04:00
avoid unnecessary copies by using const & in foreach
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=800783
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user