[Libreoffice-commits] core.git: xmloff/source
Stephan Bergmann
sbergman at redhat.com
Tue Sep 8 02:55:01 PDT 2015
xmloff/source/chart/SchXMLExport.cxx | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
New commits:
commit 81ced97e322be1316e4709ce2dadff50a01b8973
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Tue Sep 8 11:52:55 2015 +0200
clang-analyzer-deadcode.DeadStores
...ever since its inception with e9ec6f67bf4aa0d7474e54b5f55ca71671356a48
"#i110617# avoid changes on copy from calc to writer"
Change-Id: I9e26f92f4f50fe728efa7d0ac2ba873a227623ea
diff --git a/xmloff/source/chart/SchXMLExport.cxx b/xmloff/source/chart/SchXMLExport.cxx
index 4d60557..4e034c7 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 );
More information about the Libreoffice-commits
mailing list