diff options
author | Michaël Lefèvre <lefevre00@yahoo.fr> | 2014-11-15 11:41:49 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-18 11:32:19 +0000 |
commit | 63d8977f9fb0618d36dc8e0ee2f8068b1af92fe6 (patch) | |
tree | e70c5ebfabae4b0ca17f9f1ac31045755186641d /include/vcl | |
parent | df9efbd53d148c713f7d5c391ac06d873b9b4cc1 (diff) |
fdo#75757 remove inheritance from std::vector
For TextDoc, also removing ToolsList
Change-Id: Id818f61f562317ce106414937253f1748a33315a
Reviewed-on: https://gerrit.libreoffice.org/12454
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/textdata.hxx | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/include/vcl/textdata.hxx b/include/vcl/textdata.hxx index 6af42ee5a93d..fe37fbd3b4c7 100644 --- a/include/vcl/textdata.hxx +++ b/include/vcl/textdata.hxx @@ -150,21 +150,6 @@ struct TEIMEInfos void DestroyAttribs(); }; -// ----------------- Wrapper for old Tools List ------------------- - -#include <vector> -#include <algorithm> - -template <class T> class ToolsList : public ::std::vector< T > -{ -public: - size_t Count() const { return ::std::vector< T >::size(); } - size_t GetPos( T pObject ) const { return ( ::std::find( this->begin(), this->end(), pObject ) ) - this->begin(); } - T GetObject( size_t nIndex ) const { return (*this)[nIndex]; } - void Insert( T pObject, size_t nPos ) { ::std::vector< T >::insert( this->begin()+nPos, pObject ); } - void Remove( size_t nPos ) { ::std::vector< T >::erase( this->begin()+nPos ); } -}; - #endif // INCLUDED_VCL_TEXTDATA_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |