diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:25:48 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:53 +0100 |
commit | 01b49802c7cda7fd4d5ba71263cef7bc95234b89 (patch) | |
tree | b8d92f1c6abf5ac548d0bcb0c581ebfcffd8bfac /sw/source/core/doc/docchart.cxx | |
parent | 6cd7bf2043146a630925a2e49336f02c802f707a (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: I01e11fa956a249974e77dce9deebe79311f098d0
Diffstat (limited to 'sw/source/core/doc/docchart.cxx')
-rw-r--r-- | sw/source/core/doc/docchart.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/core/doc/docchart.cxx b/sw/source/core/doc/docchart.cxx index 1354afaa51f5..e61ef478006d 100644 --- a/sw/source/core/doc/docchart.cxx +++ b/sw/source/core/doc/docchart.cxx @@ -97,8 +97,8 @@ void SwDoc::DoUpdateAllCharts() const SwTableNode* pTableNd; const SwFrameFormat* pFormat = rTableFormats[ n ]; - if( 0 != ( pTmpTable = SwTable::FindTable( pFormat ) ) && - 0 != ( pTableNd = pTmpTable->GetTableNode() ) && + if( nullptr != ( pTmpTable = SwTable::FindTable( pFormat ) ) && + nullptr != ( pTableNd = pTmpTable->GetTableNode() ) && pTableNd->GetNodes().IsDocNodes() ) { _UpdateCharts( *pTmpTable, *pVSh ); @@ -112,11 +112,11 @@ void SwDoc::_UpdateCharts( const SwTable& rTable, SwViewShell const & rVSh ) con OUString aName( rTable.GetFrameFormat()->GetName() ); SwStartNode *pStNd; SwNodeIndex aIdx( *GetNodes().GetEndOfAutotext().StartOfSectionNode(), 1 ); - while( 0 != (pStNd = aIdx.GetNode().GetStartNode()) ) + while( nullptr != (pStNd = aIdx.GetNode().GetStartNode()) ) { ++aIdx; SwOLENode *pONd; - if( 0 != ( pONd = aIdx.GetNode().GetOLENode() ) && + if( nullptr != ( pONd = aIdx.GetNode().GetOLENode() ) && aName == pONd->GetChartTableName() && pONd->getLayoutFrm( rVSh.GetLayout() ) ) { @@ -169,7 +169,7 @@ void SwDoc::SetTableName( SwFrameFormat& rTableFormat, const OUString &rNewName SwStartNode *pStNd; SwNodeIndex aIdx( *GetNodes().GetEndOfAutotext().StartOfSectionNode(), 1 ); - while ( 0 != (pStNd = aIdx.GetNode().GetStartNode()) ) + while ( nullptr != (pStNd = aIdx.GetNode().GetStartNode()) ) { ++aIdx; SwOLENode *pNd = aIdx.GetNode().GetOLENode(); |