summaryrefslogtreecommitdiff
path: root/scaddins/source/analysis/analysishelper.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'scaddins/source/analysis/analysishelper.hxx')
-rw-r--r--scaddins/source/analysis/analysishelper.hxx19
1 files changed, 9 insertions, 10 deletions
diff --git a/scaddins/source/analysis/analysishelper.hxx b/scaddins/source/analysis/analysishelper.hxx
index d250f736c3a9..f2c74a3ba385 100644
--- a/scaddins/source/analysis/analysishelper.hxx
+++ b/scaddins/source/analysis/analysishelper.hxx
@@ -331,12 +331,13 @@ public:
//-----------------------------------------------------------------------------
-class ScaDoubleList : protected MyList
+class ScaDoubleList
{
+private:
+ std::vector<double> maVector;
protected:
- inline void ListAppend( double fValue ) { MyList::Append( new double( fValue ) ); }
+ inline void ListAppend( double fValue ) { maVector.push_back(fValue); }
- using MyList::Append;
inline void Append( double fValue ) throw( css::uno::RuntimeException, css::lang::IllegalArgumentException )
{ if( CheckInsert( fValue ) ) ListAppend( fValue ); }
@@ -362,14 +363,12 @@ protected:
sal_Bool bIgnoreEmpty ) throw( css::uno::RuntimeException, css::lang::IllegalArgumentException );
public:
- virtual ~ScaDoubleList();
-
- using MyList::Count;
- inline const double* Get( sal_uInt32 nIndex ) const
- { return static_cast< const double* >( MyList::GetObject( nIndex ) ); }
+ virtual ~ScaDoubleList() {}
- inline const double* First() { return static_cast< const double* >( MyList::First() ); }
- inline const double* Next() { return static_cast< const double* >( MyList::Next() ); }
+ inline sal_uInt32 Count() const
+ { return maVector.size(); }
+ inline double Get( sal_uInt32 n ) const
+ { return maVector[n]; }
void Append( const css::uno::Sequence< css::uno::Sequence< double > >& rValueArr )
throw( css::uno::RuntimeException, css::lang::IllegalArgumentException );