D15599: Port the "Switch Desktop" containment action to libtaskmanager
Vlad Zagorodniy
noreply at phabricator.kde.org
Sun Sep 30 15:22:37 BST 2018
zzag added inline comments.
INLINE COMMENTS
> desktop.cpp:73
> } else if (m_actions.count() > numDesktops) {
> - for (int i = numDesktops +1; i <= m_actions.count(); ++i) {
> - delete m_actions[i];
> - m_actions.remove(i);
> + for (int i = m_actions.count(); i <= numDesktops; --i) {
> + delete m_actions[i - 1];
Will this loop ever be executed?
Also, why not `delete m_actions.take(i - 1);`?
REPOSITORY
R120 Plasma Workspace
REVISION DETAIL
https://phabricator.kde.org/D15599
To: hein, mart, davidedmundson
Cc: zzag, broulik, plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20180930/bf39d17a/attachment-0001.html>
More information about the Plasma-devel
mailing list