summaryrefslogtreecommitdiff
path: root/scaddins/source/analysis/analysishelper.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-01-10 10:29:24 +0200
committerMichael Stahl <mstahl@redhat.com>2014-01-17 22:38:02 +0000
commit8e694ee17f8d84ac32151b56e4f5aa4663c8c067 (patch)
treea6bf8e2a36f76761a4ec59bc7562036b323cabf5 /scaddins/source/analysis/analysishelper.cxx
parent156a0235bd8ff06840cecad1e70a57ffc5b8e7e1 (diff)
convert custom list implementation to regular std::vector<OUString>
Change-Id: I6749307d5b72ddc69581b4aa685091383117073d Reviewed-on: https://gerrit.libreoffice.org/7369 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'scaddins/source/analysis/analysishelper.cxx')
-rw-r--r--scaddins/source/analysis/analysishelper.cxx13
1 files changed, 3 insertions, 10 deletions
diff --git a/scaddins/source/analysis/analysishelper.cxx b/scaddins/source/analysis/analysishelper.cxx
index 33c035fa78b6..11c4eb57bced 100644
--- a/scaddins/source/analysis/analysishelper.cxx
+++ b/scaddins/source/analysis/analysishelper.cxx
@@ -1441,13 +1441,6 @@ void MyList::Insert( void* p, sal_uInt32 n )
-StringList::~StringList()
-{
- for( OUString* p = ( OUString* ) First() ; p ; p = ( OUString* ) Next() )
- delete p;
-}
-
-
class AnalysisRscStrArrLoader : public Resource
{
private:
@@ -1480,10 +1473,10 @@ FuncData::FuncData( const FuncDataBase& r, ResMgr& rResMgr ) :
const ResStringArray& rArr = aArrLoader.GetStringArray();
sal_uInt16 nCount = sal::static_int_cast<sal_uInt16>( rArr.Count() );
- sal_uInt16 n;
- for( n = 0 ; n < nCount ; n++ )
- aCompList.Append( rArr.GetString( n ) );
+ aCompList.resize( nCount );
+ for( sal_uInt16 n = 0 ; n < nCount ; n++ )
+ aCompList[n] = rArr.GetString( n );
}