diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-11-10 15:55:07 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-11-10 18:17:56 +0100 |
commit | 6610bfdd8c8923e85b30e364c6ea5c7abf218367 (patch) | |
tree | a72462dd6b04a6e8ee939ac207adc8f67fcbb68e | |
parent | initialization-order-fiasco, again (diff) | |
download | core-6610bfdd8c8923e85b30e364c6ea5c7abf218367.tar.gz core-6610bfdd8c8923e85b30e364c6ea5c7abf218367.zip |
use a less tortured syntax for the check
Change-Id: If526f187d855760c0462f6573d1f2e42418d9094
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124996
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sw/source/core/docnode/ndnum.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/docnode/ndnum.cxx b/sw/source/core/docnode/ndnum.cxx index 9cce9a6b7780..e27755f9ed33 100644 --- a/sw/source/core/docnode/ndnum.cxx +++ b/sw/source/core/docnode/ndnum.cxx @@ -40,7 +40,7 @@ void SwNodes::UpdateOutlineNode(SwNode & rNd) { SwTextNode * pTextNd = rNd.GetTextNode(); - if (!(pTextNd && pTextNd->IsOutlineStateChanged())) + if (!pTextNd || !pTextNd->IsOutlineStateChanged()) return; bool bFound = m_pOutlineNodes->find(pTextNd) != m_pOutlineNodes->end(); |