basctl/source/basicide/baside2b.cxx | 4 ++-- basic/source/basmgr/basmgr.cxx | 4 ++-- basic/source/uno/namecont.cxx | 2 +- binaryurp/source/bridgefactory.cxx | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-)
New commits: commit 7874cba9709dd0973a81d5894d6daa9570ac86bf Author: Noel <noel.gran...@collabora.co.uk> AuthorDate: Tue Feb 16 08:54:57 2021 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Tue Feb 16 08:57:02 2021 +0100 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.gran...@collabora.co.uk> diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index 3bb09f3bb140..4da4b8fc1956 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -257,7 +257,7 @@ EditorWindow::EditorWindow (vcl::Window* pParent, ModulWindow* pModulWindow) : notifier_ = n; } const Sequence<OUString> aPropertyNames{"FontHeight", "FontName"}; - n->addPropertiesChangeListener(aPropertyNames, listener_.get()); + n->addPropertiesChangeListener(aPropertyNames, listener_); } @@ -280,7 +280,7 @@ void EditorWindow::dispose() n = notifier_; } if (n.is()) { - n->removePropertiesChangeListener(listener_.get()); + n->removePropertiesChangeListener(listener_); } aSyntaxIdle.Stop(); 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(); diff --git a/binaryurp/source/bridgefactory.cxx b/binaryurp/source/bridgefactory.cxx index 2178351015c0..803899c8a7e3 100644 --- a/binaryurp/source/bridgefactory.cxx +++ b/binaryurp/source/bridgefactory.cxx @@ -113,7 +113,7 @@ css::uno::Reference< css::bridge::XBridge > BridgeFactory::createBridge( } } b->start(); - return css::uno::Reference< css::bridge::XBridge >(b.get()); + return b; } css::uno::Reference< css::bridge::XBridge > BridgeFactory::getBridge( _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits