Kaydet (Commit) 05e01bad authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Make SvxAutocorrWordList explicitly non-copyable.

Change-Id: Idc056fd216bfe0b5e5c0285b1781b0658837f5a2
üst 614d384f
......@@ -2691,6 +2691,8 @@ bool CompareSvxAutocorrWordList::operator()( SvxAutocorrWord* const& lhs, SvxAut
return rCmp.compareString( lhs->GetShort(), rhs->GetShort() ) < 0;
}
SvxAutocorrWordList::SvxAutocorrWordList() {}
SvxAutocorrWordList::~SvxAutocorrWordList()
{
DeleteAndDestroyAll();
......
......@@ -143,6 +143,9 @@ typedef ::boost::unordered_map< OUString, SvxAutocorrWord *,
class EDITENG_DLLPUBLIC SvxAutocorrWordList
{
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'
......@@ -152,6 +155,7 @@ class EDITENG_DLLPUBLIC SvxAutocorrWordList
sal_Int32 &rStt,
sal_Int32 nEndPos) const;
public:
SvxAutocorrWordList();
// free any objects still in the set
~SvxAutocorrWordList();
void DeleteAndDestroyAll();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment