Kaydet (Commit) 3eeca6d3 authored tarafından Michael Meeks's avatar Michael Meeks

targetted re-work of minor cppcheck fixes

Change-Id: Id0c3cecaccb4d9733149061f652684d3398e9bf2
üst 3f723b36
......@@ -322,10 +322,10 @@ Reference< ::com::sun::star::sdbc::XConnection> TestConnected
int autoTest(Reference<XResultSet> &xRes)
{
sal_Int32 nRows = 0;
printColumns(xRes);
if(xRes.is())
{
sal_Int32 nRows = 0;
while( xRes.is() && xRes->next())
{
nRows++;
......
......@@ -2748,6 +2748,7 @@ void SchXMLExportHelper_Impl::exportSeries(
SvXMLElementExport* pSeries = NULL;
Sequence< Reference< chart2::data::XLabeledDataSequence > > aSeqCnt(
xSource->getDataSequences());
sal_Int32 nMainSequenceIndex = -1;
sal_Int32 nSeriesLength = 0;
sal_Int32 nAttachedAxis = chart::ChartAxisAssign::PRIMARY_Y;
sal_Bool bHasMeanValueLine = false;
......@@ -2760,7 +2761,6 @@ void SchXMLExportHelper_Impl::exportSeries(
Reference< chart2::data::XDataSequence > xValuesSeq;
Reference< chart2::data::XDataSequence > xLabelSeq;
sal_Int32 nSeqIdx=0;
sal_Int32 nMainSequenceIndex = -1;
for( ; nSeqIdx<aSeqCnt.getLength(); ++nSeqIdx )
{
OUString aRole;
......@@ -3359,6 +3359,9 @@ void SchXMLExportHelper_Impl::exportDataPoints(
::std::list< SchXMLDataPointStruct > aDataPointList;
sal_Int32 nLastIndex = -1;
sal_Int32 nCurrIndex = 0;
// collect elements
if( bVaryColorsByPoint && xColorScheme.is() )
{
......@@ -3427,10 +3430,6 @@ void SchXMLExportHelper_Impl::exportDataPoints(
}
else
{
sal_Int32 nLastIndex = -1;
sal_Int32 nCurrIndex = 0;
for( nElement = 0; nElement < nSize; ++nElement )
{
aPropertyStates.clear();
......
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