From c13133b613fda3255fab60c03012aff93a5f2f02 Mon Sep 17 00:00:00 2001 From: Noel Date: Wed, 10 Feb 2021 20:33:16 +0200 Subject: loplugin:refcounting check for managing OWeakObject with raw pointer Change-Id: I7471725f1e658940b5e6993361c327be6ccf0d31 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111064 Tested-by: Jenkins Reviewed-by: Noel Grandin --- lingucomponent/source/thesaurus/libnth/nthesimp.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lingucomponent/source') diff --git a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx index 79bd0b51ae4a..4df96c3dff05 100644 --- a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx +++ b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx @@ -386,7 +386,7 @@ Sequence < Reference < css::linguistic2::XMeaning > > SAL_CALL Thesaurus::queryM OUString aAlt( cTerm + catst); pStr[i] = aAlt; } - Meaning * pMn = new Meaning(aRTerm); + rtl::Reference pMn = new Meaning(aRTerm); OUString dTerm(pe->defn,strlen(pe->defn),eEnc ); pMn->SetMeaning(dTerm); pMn->SetSynonyms(aStr); -- cgit