diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-09-08 11:52:55 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-09-08 11:54:40 +0200 |
commit | 81ced97e322be1316e4709ce2dadff50a01b8973 (patch) | |
tree | c1ff405c46c97e29c3a7d02c0ec604ad003f341b | |
parent | d4c6a3883a38187effdd7414a0a07a9a2d3d026d (diff) |
clang-analyzer-deadcode.DeadStores
...ever since its inception with e9ec6f67bf4aa0d7474e54b5f55ca71671356a48
"#i110617# avoid changes on copy from calc to writer"
Change-Id: I9e26f92f4f50fe728efa7d0ac2ba873a227623ea
-rw-r--r-- | xmloff/source/chart/SchXMLExport.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/xmloff/source/chart/SchXMLExport.cxx b/xmloff/source/chart/SchXMLExport.cxx index 4d60557cc6c5..4e034c7ba40f 100644 --- a/xmloff/source/chart/SchXMLExport.cxx +++ b/xmloff/source/chart/SchXMLExport.cxx @@ -806,12 +806,10 @@ lcl_TableData lcl_getDataForLocalTable( SchXMLExportHelper_Impl::tDataSequenceCont::const_iterator aEnd( aSequencesToExport.end()); SchXMLExportHelper_Impl::tDataSequenceCont::const_iterator aIt( aBegin ); - size_t nMaxSequenceLength( lcl_getMaxSequenceLength( aSequencesToExport )); - size_t nCategoriesLength( aSimpleCategories.getLength() ); - if( nCategoriesLength > nMaxSequenceLength ) + auto nMaxSequenceLength( lcl_getMaxSequenceLength( aSequencesToExport )); + if( aSimpleCategories.getLength() > nMaxSequenceLength ) { aSimpleCategories.realloc(nMaxSequenceLength);//#i110617# - nCategoriesLength = nMaxSequenceLength; } size_t nNumColumns( bSeriesFromColumns ? nNumSequences : nMaxSequenceLength ); size_t nNumRows( bSeriesFromColumns ? nMaxSequenceLength : nNumSequences ); |