summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-02-16 08:54:57 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-02-16 08:57:02 +0100
commit7874cba9709dd0973a81d5894d6daa9570ac86bf (patch)
tree2430e1d2b7a0587dd33d2f593c61b75d081fd997
parentbe92ed5799e7f8dab0d8d1042135afe38b7f258f (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>
-rw-r--r--basctl/source/basicide/baside2b.cxx4
-rw-r--r--basic/source/basmgr/basmgr.cxx4
-rw-r--r--basic/source/uno/namecont.cxx2
-rw-r--r--binaryurp/source/bridgefactory.cxx2
4 files changed, 6 insertions, 6 deletions
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(