hpereiradacosta added inline comments.
INLINE COMMENTS
> breezetoolsareamanager.cpp:146
> + if (window == widget->window()->windowHandle()) {
> + hasWidget = true;
> + }
you can break here once one widget is found. no need to loop over the remaining
widgets.
alternatively you can use std::any_of or (better) std::none_of
REPOSITORY
R31 Breeze
REVISION DETAIL
https://phabricator.kde.org/D27669
To: cblack, #plasma, #breeze, #vdg
Cc: davidedmundson, hpereiradacosta, gvgeo, ngraham, manueljlin, niccolove,
ndavis, plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh,
zachus, fbampaloukas, GB_2, ragreen, ZrenBot, himcesjf, lesliezhai,
ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart