lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 23f918ef6a542cc5f473f6c9bb5897ce5be9dd06 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Sun Apr 23 20:14:10 2023 +0300 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Sun Jun 4 22:51:50 2023 +0200 Use getXWeak in lingucomponent Change-Id: Icd70dd656d847f595cc1325ed0decb4941a82cde Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150857 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx b/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx index c68a17cbd466..7152a6ff0880 100644 --- a/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx +++ b/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx @@ -528,7 +528,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* lingucomponent_LanguageToolGrammarChecker_get_implementation( css::uno::XComponentContext*, css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new LanguageToolGrammarChecker())); + return cppu::acquire(new LanguageToolGrammarChecker()); } /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */