D29061: [KCharSelect] Minor code optimisation

2020-04-22 Thread Ahmad Samir
This revision was automatically updated to reflect the committed changes. ahmadsamir marked an inline comment as done. Closed by commit R236:6a9e93c698b8: [KCharSelect] Minor code optimisation (authored by ahmadsamir). REPOSITORY R236 KWidgetsAddons CHANGES SINCE LAST UPDATE https://phabrica

D29061: [KCharSelect] Minor code optimisation

2020-04-22 Thread David Faure
dfaure accepted this revision. This revision is now accepted and ready to land. REPOSITORY R236 KWidgetsAddons BRANCH l-general-code-opti (branched from master) REVISION DETAIL https://phabricator.kde.org/D29061 To: ahmadsamir, #frameworks, cfeck, dfaure Cc: kde-frameworks-devel, LeGast00

D29061: [KCharSelect] Minor code optimisation

2020-04-22 Thread Ahmad Samir
ahmadsamir marked an inline comment as done. ahmadsamir added inline comments. INLINE COMMENTS > dfaure wrote in kcharselectdata.cpp:870 > Shouldn't this be moved to inside the `if (match.hasMatch())` check? Indeed. REPOSITORY R236 KWidgetsAddons REVISION DETAIL https://phabricator.kde.org

D29061: [KCharSelect] Minor code optimisation

2020-04-22 Thread Ahmad Samir
ahmadsamir updated this revision to Diff 80886. ahmadsamir added a comment. Only use captured() if there's a match REPOSITORY R236 KWidgetsAddons CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D29061?vs=80781&id=80886 BRANCH l-general-code-opti (branched from master) REVISION D

D29061: [KCharSelect] Minor code optimisation

2020-04-22 Thread David Faure
dfaure requested changes to this revision. dfaure added inline comments. This revision now requires changes to proceed. INLINE COMMENTS > kcharselectdata.cpp:870 > +const QRegularExpressionMatch match = hexExp.match(s); > +const QString cap = match.captured(1); > if (matc

D29061: [KCharSelect] Minor code optimisation

2020-04-21 Thread Ahmad Samir
ahmadsamir created this revision. ahmadsamir added reviewers: Frameworks, cfeck, dfaure. Herald added a project: Frameworks. ahmadsamir requested review of this revision. REVISION SUMMARY - Replace one last foreach with range-for, and set -DQT_NO_FOREACH - More const and static where appropria