summaryrefslogtreecommitdiffstats
path: root/chart2/source/tools/RegressionCurveHelper.cxx
diff options
context:
space:
mode:
authorDan Williams <fa@openoffice.org>2004-03-08 15:03:51 +0000
committerDan Williams <fa@openoffice.org>2004-03-08 15:03:51 +0000
commitfeca7966017815f8fdc9d316cf8921c30a5c532b (patch)
tree74321a4363da5c8dc79e7aff0b5a8b69ee12cb20 /chart2/source/tools/RegressionCurveHelper.cxx
parentINTEGRATION: CWS cac (1.5.44); FILE MERGED (diff)
downloadcore-feca7966017815f8fdc9d316cf8921c30a5c532b.tar.gz
core-feca7966017815f8fdc9d316cf8921c30a5c532b.zip
Correct variable scoping in 'for' statements to be ISO C++ compliant. You
technically cannot declare a variable like 'for ( int i=0; ...; ...) {} i = 1' and then use it later outside of the for() statement.
Diffstat (limited to 'chart2/source/tools/RegressionCurveHelper.cxx')
-rw-r--r--chart2/source/tools/RegressionCurveHelper.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/chart2/source/tools/RegressionCurveHelper.cxx b/chart2/source/tools/RegressionCurveHelper.cxx
index 529ab5277592..64dca2d32107 100644
--- a/chart2/source/tools/RegressionCurveHelper.cxx
+++ b/chart2/source/tools/RegressionCurveHelper.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: RegressionCurveHelper.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: bm $ $Date: 2004-01-26 09:13:04 $
+ * last change: $Author: fa $ $Date: 2004-03-08 16:03:50 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -222,7 +222,8 @@ void RegressionCurveHelper::initializeCurveCalculator(
bool bXValuesFound = false, bYValuesFound = false;
Sequence< Reference< XDataSequence > > aDataSeqs( xSource->getDataSequences());
- for( sal_Int32 i=0;
+ sal_Int32 i = 0;
+ for( i=0;
! (bXValuesFound && bYValuesFound) && i<aDataSeqs.getLength();
++i )
{