D28018: KCM/kwinscripts: fix a warning

Vlad Zahorodnii noreply at phabricator.kde.org
Fri Mar 13 09:37:31 GMT 2020


zzag added inline comments.

INLINE COMMENTS

> module.cpp:129-133
> +        const bool excludeListing = md.rawData().value("X-KWin-Exclude-Listing").toBool(false);
> +        if (excludeListing) {
>              return false;
>          }
>          return true;

Can be simplified to

  return !md.rawData().value("X-KWin-Exclude-Listing").toBool();

REPOSITORY
  R108 KWin

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

To: meven, #kwin, ervin, bport, cross, hchain
Cc: zzag, kwin, Orage, cacarry, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, GB_2, mkulinski, ragreen, jackyalcine, iodelay, crozbo, bwowk, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, hardening, romangg, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwin/attachments/20200313/bc540d4d/attachment-0001.html>


More information about the kwin mailing list