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>
This commit is contained in:
Noel 2021-02-16 08:54:57 +02:00 committed by Noel Grandin
parent be92ed5799
commit 7874cba970
4 changed files with 6 additions and 6 deletions

View file

@ -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();

View file

@ -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

View file

@ -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();

View file

@ -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(