D24913: Converts a couple foreach

Méven Car noreply at phabricator.kde.org
Thu Oct 24 12:39:23 BST 2019


meven added inline comments.

INLINE COMMENTS

> view.cpp:224
>  
> -    Q_FOREACH (QScreen* screen, QGuiApplication::screens()) {
> +    const auto screens = QGuiApplication::screens();
> +    for (QScreen* screen : screens) {

screens currently returns QList<QScreen* > and QList should get deprecated in Qt6, so using auto might save us some porting later on.

REPOSITORY
  R120 Plasma Workspace

REVISION DETAIL
  https://phabricator.kde.org/D24913

To: meven, #plasma
Cc: plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20191024/d787a49b/attachment.html>


More information about the Plasma-devel mailing list