NFC simplify sc: !(!A() const || B) is !B && A()
commit6a7daa7ece8442e70351eea071bddbe0d24803de
authorJustin Luth <justin_luth@sil.org>
Mon, 13 Dec 2021 11:59:11 +0000 (13 13:59 +0200)
committerJustin Luth <jluth@mail.com>
Mon, 13 Dec 2021 16:11:40 +0000 (13 17:11 +0100)
tree03a6998ba8d1606db3cb0705f6c42257b2aa0042
parent186a275ffb1309fac9c4ef36d5b3126f0350760f
NFC simplify sc: !(!A() const || B)  is  !B && A()

Not new AND Is the same tab
is much easier to wrap your mind around than
Not (Not the same tab OR New)

Plus it allows avoiding a (trivial) const function call.

Change-Id: Ie0d8a1e490fc3dffe6fc87c9b4d9bd1c41d34dc8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126733
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
sc/source/ui/view/tabview3.cxx