Changeset View
Changeset View
Standalone View
Standalone View
src/kxmlguifactory_p.cpp
Show First 20 Lines • Show All 198 Lines • ▼ Show 20 Line(s) | |||||
199 | void ContainerNode::plugActionList(BuildState &state) | 199 | void ContainerNode::plugActionList(BuildState &state) | ||
200 | { | 200 | { | ||
201 | MergingIndexList::iterator mIt(mergingIndices.begin()); | 201 | MergingIndexList::iterator mIt(mergingIndices.begin()); | ||
202 | MergingIndexList::iterator mEnd(mergingIndices.end()); | 202 | MergingIndexList::iterator mEnd(mergingIndices.end()); | ||
203 | for (; mIt != mEnd; ++mIt) { | 203 | for (; mIt != mEnd; ++mIt) { | ||
204 | plugActionList(state, mIt); | 204 | plugActionList(state, mIt); | ||
205 | } | 205 | } | ||
206 | 206 | | |||
207 | Q_FOREACH (ContainerNode *child, children) { | 207 | for (ContainerNode *child : qAsConst(children)) { | ||
208 | child->plugActionList(state); | 208 | child->plugActionList(state); | ||
209 | } | 209 | } | ||
210 | } | 210 | } | ||
211 | 211 | | |||
212 | void ContainerNode::plugActionList(BuildState &state, const MergingIndexList::iterator &mergingIdxIt) | 212 | void ContainerNode::plugActionList(BuildState &state, const MergingIndexList::iterator &mergingIdxIt) | ||
213 | { | 213 | { | ||
214 | const QLatin1String tagActionList("actionlist"); | 214 | const QLatin1String tagActionList("actionlist"); | ||
215 | 215 | | |||
Show All 23 Lines | |||||
239 | void ContainerNode::unplugActionList(BuildState &state) | 239 | void ContainerNode::unplugActionList(BuildState &state) | ||
240 | { | 240 | { | ||
241 | MergingIndexList::iterator mIt(mergingIndices.begin()); | 241 | MergingIndexList::iterator mIt(mergingIndices.begin()); | ||
242 | MergingIndexList::iterator mEnd(mergingIndices.end()); | 242 | MergingIndexList::iterator mEnd(mergingIndices.end()); | ||
243 | for (; mIt != mEnd; ++mIt) { | 243 | for (; mIt != mEnd; ++mIt) { | ||
244 | unplugActionList(state, mIt); | 244 | unplugActionList(state, mIt); | ||
245 | } | 245 | } | ||
246 | 246 | | |||
247 | Q_FOREACH (ContainerNode *child, children) { | 247 | for (ContainerNode *child : qAsConst(children)) { | ||
248 | child->unplugActionList(state); | 248 | child->unplugActionList(state); | ||
249 | } | 249 | } | ||
250 | } | 250 | } | ||
251 | 251 | | |||
252 | void ContainerNode::unplugActionList(BuildState &state, const MergingIndexList::iterator &mergingIdxIt) | 252 | void ContainerNode::unplugActionList(BuildState &state, const MergingIndexList::iterator &mergingIdxIt) | ||
253 | { | 253 | { | ||
254 | const QLatin1String tagActionList("actionlist"); | 254 | const QLatin1String tagActionList("actionlist"); | ||
255 | 255 | | |||
▲ Show 20 Lines • Show All 581 Lines • Show Last 20 Lines |