diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-03-02 13:42:21 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-03-03 08:47:37 +0100 |
commit | 670df8db5cbb2a9cac46a8602b95192a02fa3e2c (patch) | |
tree | c81540725dcc4b941497ae98677c5b40e652dc6c /lingucomponent | |
parent | b4adac8edd0f89a83905a567ba6c13e3ba18838b (diff) |
loplugin:refcounting (macOS)
Change-Id: Id68d9c9733738595aeb4bad24d77f77da2878e83
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111830
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'lingucomponent')
-rw-r--r-- | lingucomponent/source/spellcheck/macosxspell/macspellimp.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm index 74b365c71746..cba8dae08094 100644 --- a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm +++ b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm @@ -35,6 +35,7 @@ #include <unotools/pathoptions.hxx> #include <unotools/useroptions.hxx> #include <osl/file.hxx> +#include <rtl/ref.hxx> #include <rtl/ustrbuf.hxx> using namespace utl; @@ -486,7 +487,7 @@ Reference< XSpellAlternatives > } // now return an empty alternative for no suggestions or the list of alternatives if some found - SpellAlternatives *pAlt = new SpellAlternatives; + rtl::Reference<SpellAlternatives> pAlt = new SpellAlternatives; pAlt->SetWordLanguage( rWord, nLang ); pAlt->SetFailureType( SpellFailure::SPELLING_ERROR ); pAlt->SetAlternatives( aStr ); |