D23067: Clean up usage of m_client
Frederik Gladhorn
noreply at phabricator.kde.org
Sat Aug 10 12:25:20 BST 2019
gladhorn added inline comments.
INLINE COMMENTS
> romangg wrote in useractions.cpp:137
> If we assert client in the beginning then cl must be non-null, right? Would make all the below checks on m_client superfluous as well though.
Asserts are not active in release mode. I was very conservative, but I assume all of this is single-threaded? In that case I would indeed assume that m_client is not nullptr.
On the other hand, I'd like to have my window manager crash in debug mode because of invalid assumptions and let it keep running in release builds.
REPOSITORY
R108 KWin
REVISION DETAIL
https://phabricator.kde.org/D23067
To: gladhorn, #kwin
Cc: romangg, zzag, kwin, LeGast00n, sbergeron, jraleigh, fbampaloukas, GB_2, mkulinski, ragreen, jackyalcine, Pitel, iodelay, crozbo, bwowk, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwin/attachments/20190810/d95660e3/attachment.html>
More information about the kwin
mailing list