Prevent deep copy of list in foreach loop
KRAZY-- SVN_SILENT
This commit is contained in:
parent
309b94c10e
commit
e2614ac868
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ void KCMRulesList::importClicked()
|
||||||
return;
|
return;
|
||||||
|
|
||||||
int pos = qMax(0, rules_listbox->currentRow());
|
int pos = qMax(0, rules_listbox->currentRow());
|
||||||
foreach (QString group, groups) {
|
foreach (const QString &group, groups) {
|
||||||
KConfigGroup grp(&config, group);
|
KConfigGroup grp(&config, group);
|
||||||
const bool remove = grp.readEntry("DeleteRule", false);
|
const bool remove = grp.readEntry("DeleteRule", false);
|
||||||
Rules* new_rule = new Rules(grp);
|
Rules* new_rule = new Rules(grp);
|
||||||
|
|
Loading…
Reference in a new issue