From 11bdb6b9d9df991bb4ee48d4682458facaa2bdd5 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 8 May 2020 14:33:47 +0200 Subject: improve loplugin:referencecasting to catch a few more cases Change-Id: I0323fba51bb2b4ba255e1db5aa0d890c5c6a2e1b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93726 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sdext/source/presenter/PresenterViewFactory.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sdext') diff --git a/sdext/source/presenter/PresenterViewFactory.cxx b/sdext/source/presenter/PresenterViewFactory.cxx index bed41bddc978..d8c2cfbe7667 100644 --- a/sdext/source/presenter/PresenterViewFactory.cxx +++ b/sdext/source/presenter/PresenterViewFactory.cxx @@ -289,7 +289,7 @@ Reference PresenterViewFactory::GetViewFromCache( = dynamic_cast(iView->second.first.get()); if (pView != nullptr) pView->ActivatePresenterView(); - return Reference(iView->second.first, UNO_QUERY); + return iView->second.first; } // Right view, wrong pane. Create a new view. -- cgit