diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-30 09:43:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-05 07:53:18 +0100 |
commit | 90db24c33060bcb6db6ef900981c4379cd3074af (patch) | |
tree | da569d51c22f672edd5c46ade56c09301abbc351 /include/editeng | |
parent | 7dcf9db73b48c396332ea0d17572c5103018b8e0 (diff) |
loplugin:useuniqueptr in SvxAutoCorrectLanguageLists
and cleanup horrendous weirdity in the interaction between LoadXXX and
SetXXX methods
Change-Id: I1253579a27e835f6f79c39acf72eac85278275d6
Reviewed-on: https://gerrit.libreoffice.org/49184
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/editeng')
-rw-r--r-- | include/editeng/svxacorr.hxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/include/editeng/svxacorr.hxx b/include/editeng/svxacorr.hxx index 86d3ea3d9154..d54b6670762f 100644 --- a/include/editeng/svxacorr.hxx +++ b/include/editeng/svxacorr.hxx @@ -165,15 +165,15 @@ class EDITENG_DLLPUBLIC SvxAutoCorrectLanguageLists Date aModifiedDate; tools::Time aModifiedTime, aLastCheckTime; - SvStringsISortDtor* pCplStt_ExcptLst; - SvStringsISortDtor* pWrdStt_ExcptLst; - SvxAutocorrWordList* pAutocorr_List; + std::unique_ptr<SvStringsISortDtor> pCplStt_ExcptLst; + std::unique_ptr<SvStringsISortDtor> pWrdStt_ExcptLst; + std::unique_ptr<SvxAutocorrWordList> pAutocorr_List; SvxAutoCorrect& rAutoCorrect; long nFlags; bool IsFileChanged_Imp(); - void LoadXMLExceptList_Imp( SvStringsISortDtor*& rpLst, + void LoadXMLExceptList_Imp( std::unique_ptr<SvStringsISortDtor>& rpLst, const sal_Char* pStrmName, tools::SvRef<SotStorage>& rStg); static void SaveExceptList_Imp( const SvStringsISortDtor& rLst, @@ -193,14 +193,12 @@ public: // Load, Set, Get - the replacement list SvxAutocorrWordList* LoadAutocorrWordList(); - void SetAutocorrWordList( SvxAutocorrWordList* pList ); const SvxAutocorrWordList* GetAutocorrWordList(); // Load, Set, Get - the exception list for Capital letter at the // beginning of a sentence SvStringsISortDtor* LoadCplSttExceptList(); void SaveCplSttExceptList(); - void SetCplSttExceptList( SvStringsISortDtor* pList ); SvStringsISortDtor* GetCplSttExceptList(); bool AddToCplSttExceptList(const OUString& rNew); @@ -208,7 +206,6 @@ public: // beginning of a word. SvStringsISortDtor* LoadWrdSttExceptList(); void SaveWrdSttExceptList(); - void SetWrdSttExceptList( SvStringsISortDtor* pList ); SvStringsISortDtor* GetWrdSttExceptList(); bool AddToWrdSttExceptList(const OUString& rNew); |