diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-07-30 10:34:02 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-08-01 09:20:08 +0200 |
commit | da64ad86e9f2dd66fbcecb46dcc22626e9f5a6a6 (patch) | |
tree | 6d566510d16fbf0d9525bde5ac435cf23c39fe48 /sw/source/core/doc/docchart.cxx | |
parent | 5dccc6130242a67b6c471245d289cd4a0419602a (diff) |
loplugin:flatten in sw/core/doc
Change-Id: If7738d47ec0273f24eee99b7336380cfa78c1243
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99896
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/doc/docchart.cxx')
-rw-r--r-- | sw/source/core/doc/docchart.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sw/source/core/doc/docchart.cxx b/sw/source/core/doc/docchart.cxx index 4acfb511949a..0e2cef59555b 100644 --- a/sw/source/core/doc/docchart.cxx +++ b/sw/source/core/doc/docchart.cxx @@ -78,19 +78,19 @@ bool SwTable::IsTableComplexForChart( const OUString& rSelection ) const void SwDoc::DoUpdateAllCharts() { SwViewShell* pVSh = getIDocumentLayoutAccess().GetCurrentViewShell(); - if( pVSh ) + if( !pVSh ) + return; + + const SwFrameFormats& rTableFormats = *GetTableFrameFormats(); + for( size_t n = 0; n < rTableFormats.size(); ++n ) { - const SwFrameFormats& rTableFormats = *GetTableFrameFormats(); - for( size_t n = 0; n < rTableFormats.size(); ++n ) - { - const SwFrameFormat* pFormat = rTableFormats[ n ]; - if( SwTable* pTmpTable = SwTable::FindTable( pFormat ) ) - if( const SwTableNode* pTableNd = pTmpTable->GetTableNode() ) - if( pTableNd->GetNodes().IsDocNodes() ) - { - UpdateCharts_( *pTmpTable, *pVSh ); - } - } + const SwFrameFormat* pFormat = rTableFormats[ n ]; + if( SwTable* pTmpTable = SwTable::FindTable( pFormat ) ) + if( const SwTableNode* pTableNd = pTmpTable->GetTableNode() ) + if( pTableNd->GetNodes().IsDocNodes() ) + { + UpdateCharts_( *pTmpTable, *pVSh ); + } } } |