diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-16 08:54:57 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-16 08:57:02 +0100 |
commit | 7874cba9709dd0973a81d5894d6daa9570ac86bf (patch) | |
tree | 2430e1d2b7a0587dd33d2f593c61b75d081fd997 /basic | |
parent | be92ed5799e7f8dab0d8d1042135afe38b7f258f (diff) |
loplugin:referencecasting in basctl..binaryurp
Change-Id: I3fbc287cf76e453e2c464837d2431ff19501fde3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110968
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/basmgr/basmgr.cxx | 4 | ||||
-rw-r--r-- | basic/source/uno/namecont.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx index 1254768a2b00..881deabd75e1 100644 --- a/basic/source/basmgr/basmgr.cxx +++ b/basic/source/basmgr/basmgr.cxx @@ -497,7 +497,7 @@ BasicManager::BasicManager( SotStorage& rStorage, const OUString& rBaseURL, Star static void copyToLibraryContainer( StarBASIC* pBasic, const LibraryContainerInfo& rInfo ) { - uno::Reference< script::XLibraryContainer > xScriptCont( rInfo.mxScriptCont.get() ); + uno::Reference< script::XLibraryContainer > xScriptCont( rInfo.mxScriptCont ); if ( !xScriptCont.is() ) return; @@ -538,7 +538,7 @@ void BasicManager::SetLibraryContainerInfo( const LibraryContainerInfo& rInfo ) { mpImpl->maContainerInfo = rInfo; - uno::Reference< script::XLibraryContainer > xScriptCont( mpImpl->maContainerInfo.mxScriptCont.get() ); + uno::Reference< script::XLibraryContainer > xScriptCont( mpImpl->maContainerInfo.mxScriptCont ); if( xScriptCont.is() ) { // Register listener for lib container diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx index 61b62632ef6f..a2b0391f92da 100644 --- a/basic/source/uno/namecont.cxx +++ b/basic/source/uno/namecont.cxx @@ -2681,7 +2681,7 @@ void SfxLibraryContainer::_disposing( const EventObject& _rSource ) void SAL_CALL SfxLibraryContainer::disposing() { Reference< XModel > xModel = mxOwnerDocument; - EventObject aEvent( xModel.get() ); + EventObject aEvent( xModel ); maVBAScriptListeners.disposing( aEvent ); stopAllComponentListening(); mxOwnerDocument.clear(); |