diff options
author | Noel Grandin <noel@peralex.com> | 2012-07-10 14:29:46 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-07-12 14:12:32 +0200 |
commit | 46a02d0ebf0babfa4027483ad7dc3958b725e698 (patch) | |
tree | f106e95076af475a301718a39b4824425da36c59 /editeng/inc | |
parent | 1384ccd692a80f78458a7b7cd818bbd010007bab (diff) |
Convert SV_DECL_PTRARR_SORT_DEL_VISIBILITY(SvxAutocorrWordList) to std::set
Change-Id: I31783eecc28cdc6f4d8c40841302d5338a2cd7be
Diffstat (limited to 'editeng/inc')
-rw-r--r-- | editeng/inc/editeng/svxacorr.hxx | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/editeng/inc/editeng/svxacorr.hxx b/editeng/inc/editeng/svxacorr.hxx index 51de3294d1a2..71d67c9c8d49 100644 --- a/editeng/inc/editeng/svxacorr.hxx +++ b/editeng/inc/editeng/svxacorr.hxx @@ -31,7 +31,6 @@ #include <com/sun/star/embed/XStorage.hpp> #include <tools/rtti.hxx> -#include <svl/svarray.hxx> #include <i18npool/lang.h> #include <tools/time.hxx> #include <tools/date.hxx> @@ -40,6 +39,7 @@ #include "editeng/editengdllapi.h" #include <map> +#include <set> #include <boost/ptr_container/ptr_map.hpp> class CharClass; @@ -128,8 +128,17 @@ public: sal_Bool IsTextOnly() const { return bIsTxtOnly; } }; -typedef SvxAutocorrWord* SvxAutocorrWordPtr; -SV_DECL_PTRARR_SORT_DEL_VISIBILITY( SvxAutocorrWordList, SvxAutocorrWordPtr, 10, EDITENG_DLLPUBLIC) +struct CompareSvxAutocorrWordList +{ + bool operator()( SvxAutocorrWord* const& lhs, SvxAutocorrWord* const& rhs ) const; +}; +class EDITENG_DLLPUBLIC SvxAutocorrWordList : public std::set<SvxAutocorrWord*, CompareSvxAutocorrWordList> +{ +public: + // free any objects still in the set + ~SvxAutocorrWordList(); + void DeleteAndDestroyAll(); +}; class EDITENG_DLLPUBLIC SvxAutoCorrectLanguageLists { |