From 516d593ce1593ad47712b762dfa67a8063a18929 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 9 May 2018 14:53:07 +0200 Subject: loplugin:useuniqueptr in SvxAutoCorrectLanguageLists Change-Id: Ie433a336f9cd5133aefbe4ef88d214b5f5c63a0a Reviewed-on: https://gerrit.libreoffice.org/54182 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/editeng/svxacorr.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/editeng/svxacorr.hxx') diff --git a/include/editeng/svxacorr.hxx b/include/editeng/svxacorr.hxx index 8d4b81fb1c9b..336a2c23b95f 100644 --- a/include/editeng/svxacorr.hxx +++ b/include/editeng/svxacorr.hxx @@ -154,8 +154,8 @@ public: // free any objects still in the set ~SvxAutocorrWordList(); void DeleteAndDestroyAll(); - bool Insert(SvxAutocorrWord *pWord) const; - SvxAutocorrWord* FindAndRemove(SvxAutocorrWord *pWord); + bool Insert(std::unique_ptr pWord) const; + std::unique_ptr FindAndRemove(SvxAutocorrWord *pWord); void LoadEntry(const OUString& sWrong, const OUString& sRight, bool bOnlyTxt); bool empty() const; -- cgit