diff options
author | Noel Grandin <noel@peralex.com> | 2014-01-10 10:29:24 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-01-17 22:38:02 +0000 |
commit | 8e694ee17f8d84ac32151b56e4f5aa4663c8c067 (patch) | |
tree | a6bf8e2a36f76761a4ec59bc7562036b323cabf5 /scaddins/source/analysis/analysishelper.hxx | |
parent | 156a0235bd8ff06840cecad1e70a57ffc5b8e7e1 (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.hxx')
-rw-r--r-- | scaddins/source/analysis/analysishelper.hxx | 60 |
1 files changed, 4 insertions, 56 deletions
diff --git a/scaddins/source/analysis/analysishelper.hxx b/scaddins/source/analysis/analysishelper.hxx index 66a25a525e79..df561548c05e 100644 --- a/scaddins/source/analysis/analysishelper.hxx +++ b/scaddins/source/analysis/analysishelper.hxx @@ -177,27 +177,6 @@ public: }; - - -class StringList : protected MyList -{ -public: - virtual ~StringList(); - - inline const OUString* First( void ); - inline const OUString* Next( void ); - inline const OUString* Get( sal_uInt32 nIndex ) const; - - using MyList::Append; - inline void Append( OUString* pNew ); - inline void Append( const OUString& rNew ); - - using MyList::Count; -}; - - - - enum FDCategory { FDCat_AddIn, @@ -235,7 +214,7 @@ private: sal_uInt16 nParam; // num of parameters sal_uInt16 nCompID; - StringList aCompList; // list of all valid names + std::vector<OUString> aCompList; // list of all valid names FDCategory eCat; // function category public: FuncData( const FuncDataBase& rBaseData, ResMgr& ); @@ -249,7 +228,8 @@ public: sal_uInt16 GetStrIndex( sal_uInt16 nParamNum ) const; inline sal_Bool Is( const OUString& rCompareTo ) const; - inline const StringList& GetCompNameList( void ) const; + inline const std::vector<OUString> & + GetCompNameList( void ) const; inline FDCategory GetCategory( void ) const; }; @@ -700,38 +680,6 @@ inline sal_uInt32 MyList::Count( void ) const -inline const OUString* StringList::First( void ) -{ - return ( const OUString* ) MyList::First(); -} - - -inline const OUString* StringList::Next( void ) -{ - return ( const OUString* ) MyList::Next(); -} - - -inline const OUString* StringList::Get( sal_uInt32 n ) const -{ - return ( const OUString* ) MyList::GetObject( n ); -} - - -inline void StringList::Append( OUString* p ) -{ - MyList::Append( p ); -} - - -inline void StringList::Append( const OUString& r ) -{ - MyList::Append( new OUString( r ) ); -} - - - - inline sal_uInt16 FuncData::GetUINameID( void ) const { return nUINameID; @@ -762,7 +710,7 @@ inline sal_Bool FuncData::Is( const OUString& r ) const } -inline const StringList& FuncData::GetCompNameList( void ) const +inline const std::vector<OUString> & FuncData::GetCompNameList( void ) const { return aCompList; } |