diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2014-07-17 14:19:37 +0900 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-07-17 21:29:50 +0000 |
commit | fffc9b2f262a54a163ff43ceb769c95fa41344ff (patch) | |
tree | e6cfa7d5f15754dfbfa1ca4b154360e9f80fe01d /basic/source/inc | |
parent | 1e2107e76b9dbd1213b811960c86f8eae57457e5 (diff) |
fdo#75757: remove inheritance to std::vector
... which was introduced at 2110397670695991b3a5cd28a15ba0ffd2a3a611.
Change-Id: If0f634b29e1891574267edf8cc07b24d07a9406c
Reviewed-on: https://gerrit.libreoffice.org/10363
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'basic/source/inc')
-rw-r--r-- | basic/source/inc/symtbl.hxx | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/basic/source/inc/symtbl.hxx b/basic/source/inc/symtbl.hxx index c2bc4f068448..69f0d849f28c 100644 --- a/basic/source/inc/symtbl.hxx +++ b/basic/source/inc/symtbl.hxx @@ -21,6 +21,7 @@ #define INCLUDED_BASIC_SOURCE_INC_SYMTBL_HXX #include <vector> +#include <boost/ptr_container/ptr_vector.hpp> class SbiConstDef; class SbiParser; @@ -50,11 +51,7 @@ public: }; -class SbiSymbols : public std::vector<SbiSymDef*> -{ -public: - ~SbiSymbols(); -}; +typedef boost::ptr_vector<SbiSymDef> SbiSymbols; class SbiSymPool { friend class SbiSymDef; @@ -81,9 +78,9 @@ public: SbiSymDef* AddSym( const OUString& ); SbiProcDef* AddProc( const OUString& ); void Add( SbiSymDef* ); - SbiSymDef* Find( const OUString& ) const; // variable name - SbiSymDef* FindId( sal_uInt16 ) const; - SbiSymDef* Get( sal_uInt16 ) const; // find variable per position + SbiSymDef* Find( const OUString& ); // variable name + const SbiSymDef* FindId( sal_uInt16 ) const; + SbiSymDef* Get( sal_uInt16 ); // find variable per position SbiSymDef* First(), *Next(); // iterators sal_uInt32 Define( const OUString& ); |