summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2016-03-03 21:38:22 +0200
committerTor Lillqvist <tml@collabora.com>2016-03-03 21:38:22 +0200
commit56f81d96e321d941abb43ed6b26a987bf815f36a (patch)
treed9fc40f03a76e8a9db08573a98fa480ba9f2431d
parentdb145e5073e42ae71a77c5987ae673cfe97426d1 (diff)
We don't use 'using' for other std types either in this file
Change-Id: I561e515da65db619330b536e3c8c6de555730740
-rw-r--r--sc/source/core/tool/interpr8.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/sc/source/core/tool/interpr8.cxx b/sc/source/core/tool/interpr8.cxx
index 765129176dbc..48bd9168c63b 100644
--- a/sc/source/core/tool/interpr8.cxx
+++ b/sc/source/core/tool/interpr8.cxx
@@ -17,8 +17,6 @@
#include <cmath>
#include <vector>
-
-using ::std::vector;
using namespace formula;
struct DataPoint
@@ -72,7 +70,7 @@ class ScETSForecastCalculation
{
private:
SvNumberFormatter* mpFormatter;
- vector< DataPoint > maRange; // data (X, Y)
+ std::vector< DataPoint > maRange; // data (X, Y)
double* mpBase; // calculated base value array
double* mpTrend; // calculated trend factor array
double* mpPerIdx; // calculated periodical deviation array, not used with eds
@@ -267,7 +265,7 @@ bool ScETSForecastCalculation::PreprocessDataRange( ScMatrixRef rMatX, ScMatrixR
case 5 : // MEDIAN
{
- vector< double > aTmp;
+ std::vector< double > aTmp;
aTmp.push_back( maRange[ i - 1 ].Y );
while ( maRange[ i ].X == maRange[ i - 1 ].X && i < mnCount )
{
@@ -436,7 +434,7 @@ bool ScETSForecastCalculation::prefillPerIdx()
return false;
}
SCSIZE nPeriods = mnCount / mnSmplInPrd;
- vector< double > aPeriodAverage( nPeriods, 0.0 );
+ std::vector< double > aPeriodAverage( nPeriods, 0.0 );
for ( SCSIZE i = 0; i < nPeriods ; i++ )
{
for ( SCSIZE j = 0; j < mnSmplInPrd; j++ )
@@ -1003,7 +1001,7 @@ bool ScETSForecastCalculation::GetETSPredictionIntervals( ScMatrixRef rTMat, ScM
std::unique_ptr< double[] > xScenBase( new double[nSize]);
std::unique_ptr< double[] > xScenTrend( new double[nSize]);
std::unique_ptr< double[] > xScenPerIdx( new double[nSize]);
- vector< vector< double > > aPredictions( nSize, vector< double >( cnScenarios ) );
+ std::vector< std::vector< double > > aPredictions( nSize, std::vector< double >( cnScenarios ) );
// fill scenarios
for ( SCSIZE k = 0; k < cnScenarios; k++ )
@@ -1132,7 +1130,7 @@ bool ScETSForecastCalculation::GetEDSPredictionIntervals( ScMatrixRef rTMat, ScM
double z = ScInterpreter::gaussinv( ( 1.0 + fPILevel ) / 2.0 );
double o = 1 - fPILevel;
- vector< double > c( nSize );
+ std::vector< double > c( nSize );
for ( SCSIZE i = 0; i < nSize; i++ )
{
c[ i ] = sqrt( 1 + ( fPILevel / pow( 1 + o, 3.0 ) ) *