diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-11-22 13:23:44 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-11-22 13:28:52 -0500 |
commit | 3980fc115d4c816c3dca449752a151f7b1effea4 (patch) | |
tree | b7aa8635219706fe0608c639a4adf499ca61b4df /include | |
parent | 05e01bad5d5387ec551dd8ef50be7197df518504 (diff) |
Apply pimpl to SvxAutocorrWordList.
And remove <set> and <boost/unordered_map.hpp> header includes from its
public header.
Change-Id: I7e748009f718f4195bec2348383df07dc67600cd
Diffstat (limited to 'include')
-rw-r--r-- | include/editeng/svxacorr.hxx | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/include/editeng/svxacorr.hxx b/include/editeng/svxacorr.hxx index 7e7886cc58d1..9e5f5da0f4b0 100644 --- a/include/editeng/svxacorr.hxx +++ b/include/editeng/svxacorr.hxx @@ -32,8 +32,6 @@ #include <editeng/editengdllapi.h> #include <map> -#include <set> -#include <boost/unordered_map.hpp> #include <boost/ptr_container/ptr_map.hpp> class CharClass; @@ -137,19 +135,14 @@ struct CompareSvxAutocorrWordList bool operator()( SvxAutocorrWord* const& lhs, SvxAutocorrWord* const& rhs ) const; }; -typedef std::set<SvxAutocorrWord*, CompareSvxAutocorrWordList> SvxAutocorrWordList_Set; -typedef ::boost::unordered_map< OUString, SvxAutocorrWord *, - OUStringHash > SvxAutocorrWordList_Hash; - class EDITENG_DLLPUBLIC SvxAutocorrWordList { + struct Impl; + Impl* mpImpl; + SvxAutocorrWordList( const SvxAutocorrWordList& ); // disabled const SvxAutocorrWordList& operator= ( const SvxAutocorrWordList& ); // disabled - // only one of these contains the data - mutable SvxAutocorrWordList_Set maSet; - mutable SvxAutocorrWordList_Hash maHash; // key is 'Short' - const SvxAutocorrWord* WordMatches(const SvxAutocorrWord *pFnd, const OUString &rTxt, sal_Int32 &rStt, |