D23597: Bulk port away from foreach

2019-09-07 Thread Friedrich W. H. Kossebau
This revision was automatically updated to reflect the committed changes. Closed by commit R236:549fc06ffa21: Bulk port away from foreach (authored by kossebau). REPOSITORY R236 KWidgetsAddons CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D23597?vs=65089=65614 REVISION DETAIL

D23597: Bulk port away from foreach

2019-09-01 Thread Friedrich W. H. Kossebau
kossebau added a comment. Thanks. In any case, would wait for after 5.62 tagging/branching, as by experience there still might be one or the other regression slipped in with porting from foreach, so having some weeks of testing from more people running git master makes me feel better,

D23597: Bulk port away from foreach

2019-09-01 Thread Dominik Haumann
dhaumann accepted this revision. dhaumann added a comment. This revision is now accepted and ready to land. I think this patch is good to go in. REPOSITORY R236 KWidgetsAddons BRANCH portmostfporeach REVISION DETAIL https://phabricator.kde.org/D23597 To: kossebau, #frameworks, cfeck,

D23597: Bulk port away from foreach

2019-09-01 Thread Friedrich W. H. Kossebau
kossebau added inline comments. INLINE COMMENTS > kossebau wrote in kfontsizeaction.cpp:93 > Will test is this works, but IIRC actions() returned a normal left-side value > thingie, which qAsConst does not want to take. Yes, `qAsConst(actions())` does not work, as actions() is a r-value type,

D23597: Bulk port away from foreach

2019-09-01 Thread Friedrich W. H. Kossebau
kossebau updated this revision to Diff 65089. kossebau added a comment. - align * & & with var name, not type, by current KF coding style - fix "fir" for "for" REPOSITORY R236 KWidgetsAddons CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D23597?vs=65032=65089 BRANCH

D23597: Bulk port away from foreach

2019-08-31 Thread Christoph Feck
cfeck added inline comments. INLINE COMMENTS > kacceleratormanagertest.cpp:35 > +const auto menuActions = menu.actions(); > +for (const QAction* action : menuActions) { > if (action->isSeparator()) { Please use KF5 coding style: `Type *var` instead of `Type* var` (also for `&`

D23597: Bulk port away from foreach

2019-08-31 Thread Friedrich W. H. Kossebau
kossebau added a comment. Thanks for review @dhaumann :) Well, if you like I can give KTextEditor a try, motivated there with my KDevelop hat on :) Let's see when I am sleepless at the computer next time ;) INLINE COMMENTS > dhaumann wrote in fonthelpers.cpp:97 > Optionally, you could

D23597: Bulk port away from foreach

2019-08-31 Thread Dominik Haumann
dhaumann added a comment. PS: could you do the same for kate.git ? :-D REPOSITORY R236 KWidgetsAddons REVISION DETAIL https://phabricator.kde.org/D23597 To: kossebau, #frameworks, cfeck Cc: dhaumann, kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns

D23597: Bulk port away from foreach

2019-08-31 Thread Dominik Haumann
dhaumann added a comment. I think the patch is fine: +1 Please address/comment on `fir` :) besides that, another review won't hurt, since you simplify the code in 1-2 places, i.e. the changes are slightly more than just the transition to `for`. INLINE COMMENTS > fonthelpers.cpp:97 >

D23597: Bulk port away from foreach

2019-08-30 Thread Friedrich W. H. Kossebau
kossebau created this revision. kossebau added reviewers: Frameworks, cfeck. Herald added a project: Frameworks. Herald added a subscriber: kde-frameworks-devel. kossebau requested review of this revision. REVISION SUMMARY Few are left as they are with code which needs further analysis and