summaryrefslogtreecommitdiff
path: root/sc/source/ui/vba/vbaworkbook.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-07-19 20:09:55 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-20 07:56:54 +0200
commit8239e13dac39741003dfbce7099c3197080aafa8 (patch)
tree99a000030329e6b7363a2036cd27d0d64396f089 /sc/source/ui/vba/vbaworkbook.cxx
parent84abf28e05fc55be867028f3d3a59220ca2669f0 (diff)
loplugin:referencecasting in sc
Change-Id: Ife30500d1ff67e06afc4d64634febfb4c161c702 Reviewed-on: https://gerrit.libreoffice.org/75976 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/vba/vbaworkbook.cxx')
-rw-r--r--sc/source/ui/vba/vbaworkbook.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/vba/vbaworkbook.cxx b/sc/source/ui/vba/vbaworkbook.cxx
index 8f33e00c4c37..b6e45af532f5 100644
--- a/sc/source/ui/vba/vbaworkbook.cxx
+++ b/sc/source/ui/vba/vbaworkbook.cxx
@@ -200,7 +200,7 @@ ScVbaWorkbook::init()
{
if ( !ColorData.hasElements() )
ResetColors();
- uno::Reference< frame::XModel > xModel( getModel(), uno::UNO_QUERY );
+ uno::Reference< frame::XModel > xModel = getModel();
if ( xModel.is() )
excel::getDocShell( xModel )->RegisterAutomationWorkbookObject( this );
}