diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-19 20:10:45 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-20 07:57:54 +0200 |
commit | e1983485a83bb81d3675c429a2525f7969cc6169 (patch) | |
tree | bc97039ef4b605d8ac13d39c85756d8d3978686d /sdext/source/presenter/PresenterController.cxx | |
parent | 775c8a76d61f5692c54f524725b369cfd2a91539 (diff) |
loplugin:referencecasting in sdext
Change-Id: I4599375fae2516da20df0bdfc09f391e0189fc46
Reviewed-on: https://gerrit.libreoffice.org/75978
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sdext/source/presenter/PresenterController.cxx')
-rw-r--r-- | sdext/source/presenter/PresenterController.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sdext/source/presenter/PresenterController.cxx b/sdext/source/presenter/PresenterController.cxx index 99600638cf8d..5c438eb32eb0 100644 --- a/sdext/source/presenter/PresenterController.cxx +++ b/sdext/source/presenter/PresenterController.cxx @@ -160,8 +160,8 @@ PresenterController::PresenterController ( // Create an object that is able to load the bitmaps in a format that is // supported by the canvas. - Reference<lang::XMultiComponentFactory> xFactory ( - rxContext->getServiceManager(), UNO_QUERY); + Reference<lang::XMultiComponentFactory> xFactory = + rxContext->getServiceManager(); if ( ! xFactory.is()) return; mxPresenterHelper.set( @@ -1157,7 +1157,7 @@ void PresenterController::UpdatePendingSlideNumber (const sal_Int32 nPendingSlid if (pFont.get() == nullptr) return; - pFont->PrepareFont(Reference<rendering::XCanvas>(mxCanvas, UNO_QUERY)); + pFont->PrepareFont(mxCanvas); if ( ! pFont->mxFont.is()) return; |