summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-06-21 14:04:47 +0200
committerMontel Laurent <[email protected]>2017-06-21 14:04:47 +0200
commit08327fe450396967f136890665892be95abdc51f (patch)
tree6204da067ccb66dda4ea849b6463ac52679ce0d3
parentc895d463b4a615ae355ddca4aef2feb31069dbe0 (diff)
Minor
-rw-r--r--src/libkdepim/prefs/kprefsdialog.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libkdepim/prefs/kprefsdialog.cpp b/src/libkdepim/prefs/kprefsdialog.cpp
index 285f5d1..5be8cbd 100644
--- a/src/libkdepim/prefs/kprefsdialog.cpp
+++ b/src/libkdepim/prefs/kprefsdialog.cpp
@@ -680,8 +680,9 @@ KPrefsWidRadios *KPrefsWidManager::addWidRadios(KConfigSkeleton::ItemEnum *item,
QList<KConfigSkeleton::ItemEnum::Choice2> choices;
choices = item->choices2();
QList<KConfigSkeleton::ItemEnum::Choice2>::ConstIterator it;
+ QList<KConfigSkeleton::ItemEnum::Choice2>::ConstIterator end(choices.constEnd());
int value = 0;
- for (it = choices.constBegin(); it != choices.constEnd(); ++it) {
+ for (it = choices.constBegin(); it != end; ++it) {
w->addRadio(value++, (*it).label, (*it).toolTip, (*it).whatsThis);
}
addWid(w);
@@ -693,8 +694,8 @@ KPrefsWidCombo *KPrefsWidManager::addWidCombo(KConfigSkeleton::ItemEnum *item, Q
KPrefsWidCombo *w = new KPrefsWidCombo(item, parent);
QList<KConfigSkeleton::ItemEnum::Choice> choices;
choices = item->choices();
- QList<KConfigSkeleton::ItemEnum::Choice>::ConstIterator it;
- for (it = choices.constBegin(); it != choices.constEnd(); ++it) {
+ QList<KConfigSkeleton::ItemEnum::Choice>::ConstIterator end(choices.constEnd());
+ for (QList<KConfigSkeleton::ItemEnum::Choice>::ConstIterator it = choices.constBegin(); it != end; ++it) {
w->comboBox()->addItem((*it).label);
}
addWid(w);