Kaydet (Commit) 9e9f52ad authored tarafından Julien Nabet's avatar Julien Nabet

-Werror=maybe-uninitialized

Change-Id: I15e9d6397c4a5437c7441fa659ff953ed0b64bec
Reviewed-on: https://gerrit.libreoffice.org/31509Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
üst 01dcaa31
...@@ -115,8 +115,10 @@ void SwTableBoxFormula::ChangeState( const SfxPoolItem* pItem ) ...@@ -115,8 +115,10 @@ void SwTableBoxFormula::ChangeState( const SfxPoolItem* pItem )
// detect table that contains this attribute // detect table that contains this attribute
const SwTableNode* pTableNd; const SwTableNode* pTableNd;
const SwNode* pNd = GetNodeOfFormula(); const SwNode* pNd = GetNodeOfFormula();
if( pNd && &pNd->GetNodes() == &pNd->GetDoc()->GetNodes() && if (!pNd || &pNd->GetNodes() != &pNd->GetDoc()->GetNodes())
nullptr != ( pTableNd = pNd->FindTableNode() )) return;
pTableNd = pNd->FindTableNode();
if( pTableNd != nullptr )
{ {
switch( pUpdateField->m_eFlags ) switch( pUpdateField->m_eFlags )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment