Prevent deep copy of list in foreach loop

KRAZY--
SVN_SILENT
This commit is contained in:
Martin Gräßlin 2011-08-31 18:19:28 +02:00
parent 309b94c10e
commit e2614ac868

View file

@ -172,7 +172,7 @@ void KCMRulesList::importClicked()
return;
int pos = qMax(0, rules_listbox->currentRow());
foreach (QString group, groups) {
foreach (const QString &group, groups) {
KConfigGroup grp(&config, group);
const bool remove = grp.readEntry("DeleteRule", false);
Rules* new_rule = new Rules(grp);