Prevent deep copy of list in foreach loop

KRAZY--
SVN_SILENT
icc-effect-5.14.5
Martin Gräßlin 2011-08-31 18:19:28 +02:00
parent 309b94c10e
commit e2614ac868
1 changed files with 1 additions and 1 deletions

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);