diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2016-12-01 22:39:58 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2016-12-02 06:07:31 +0000 |
commit | 9e9f52ad17a73f353b372bcdc9971443b961d39a (patch) | |
tree | bb7494aff354ff84495c0e23d0f10f58a9cc908b | |
parent | 01dcaa31f44aaf684cdfaff8af73aeafbbbd0aa3 (diff) |
-Werror=maybe-uninitialized
Change-Id: I15e9d6397c4a5437c7441fa659ff953ed0b64bec
Reviewed-on: https://gerrit.libreoffice.org/31509
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
-rw-r--r-- | sw/source/core/attr/cellatr.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/core/attr/cellatr.cxx b/sw/source/core/attr/cellatr.cxx index 9a99b65fd34d..6a0401b2b5f6 100644 --- a/sw/source/core/attr/cellatr.cxx +++ b/sw/source/core/attr/cellatr.cxx @@ -115,8 +115,10 @@ void SwTableBoxFormula::ChangeState( const SfxPoolItem* pItem ) // detect table that contains this attribute const SwTableNode* pTableNd; const SwNode* pNd = GetNodeOfFormula(); - if( pNd && &pNd->GetNodes() == &pNd->GetDoc()->GetNodes() && - nullptr != ( pTableNd = pNd->FindTableNode() )) + if (!pNd || &pNd->GetNodes() != &pNd->GetDoc()->GetNodes()) + return; + pTableNd = pNd->FindTableNode(); + if( pTableNd != nullptr ) { switch( pUpdateField->m_eFlags ) { |