From c63ec2a923b8e06df01593677ca90a271084ca04 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 9 Oct 2019 23:15:09 +0200 Subject: loplugin:redundantpointerops (macOS) Change-Id: I40d51fbdd712d1e6e64cede05338c07a06261d8a Reviewed-on: https://gerrit.libreoffice.org/80568 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- lingucomponent/source/spellcheck/macosxspell/macspellimp.hxx | 2 +- lingucomponent/source/spellcheck/macosxspell/macspellimp.mm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lingucomponent') diff --git a/lingucomponent/source/spellcheck/macosxspell/macspellimp.hxx b/lingucomponent/source/spellcheck/macosxspell/macspellimp.hxx index a750a849144e..0adc1a1cbf2f 100644 --- a/lingucomponent/source/spellcheck/macosxspell/macspellimp.hxx +++ b/lingucomponent/source/spellcheck/macosxspell/macspellimp.hxx @@ -79,7 +79,7 @@ class MacSpellChecker : linguistic::PropertyHelper_Spell & GetPropHelper_Impl(); linguistic::PropertyHelper_Spell & GetPropHelper() { - return xPropHelper.is() ? *xPropHelper.get() : GetPropHelper_Impl(); + return xPropHelper.is() ? *xPropHelper : GetPropHelper_Impl(); } sal_Int16 GetSpellFailure( const OUString &rWord, const Locale &rLocale ); diff --git a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm index 31af179f4eaf..ef3d5decb013 100644 --- a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm +++ b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm @@ -87,7 +87,7 @@ PropertyHelper_Spell & MacSpellChecker::GetPropHelper_Impl() xPropHelper = new PropertyHelper_Spell( static_cast(this), xPropSet ); xPropHelper->AddAsPropListener(); } - return *xPropHelper.get(); + return *xPropHelper; } -- cgit