summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-10-08 10:30:36 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-09 07:44:49 +0200
commit682fdbf1312cf6ca70fe209bf4d7051dad8f5008 (patch)
treed001d22a20752086c6aa0f56d6c83791406fae9b /dbaccess
parentc71896debc7ef5f6d6e918f59fa44423eb5df480 (diff)
loplugin:redundantpointerops check other pointer types
as well as unique_ptr Change-Id: I54842bca161ee460fb96c46ca31b6f9c0a7dbbdf Reviewed-on: https://gerrit.libreoffice.org/80455 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/core/dataaccess/datasource.cxx2
-rw-r--r--dbaccess/source/ui/browser/genericcontroller.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/core/dataaccess/datasource.cxx b/dbaccess/source/core/dataaccess/datasource.cxx
index edad6f160f7d..95aef3c1a236 100644
--- a/dbaccess/source/core/dataaccess/datasource.cxx
+++ b/dbaccess/source/core/dataaccess/datasource.cxx
@@ -496,7 +496,7 @@ ODatabaseSource::~ODatabaseSource()
void ODatabaseSource::setName( const Reference< XDocumentDataSource >& _rxDocument, const OUString& _rNewName, DBContextAccess )
{
- ODatabaseSource& rModelImpl = dynamic_cast< ODatabaseSource& >( *_rxDocument.get() );
+ ODatabaseSource& rModelImpl = dynamic_cast< ODatabaseSource& >( *_rxDocument );
SolarMutexGuard g;
if ( rModelImpl.m_pImpl.is() )
diff --git a/dbaccess/source/ui/browser/genericcontroller.cxx b/dbaccess/source/ui/browser/genericcontroller.cxx
index 0989a2c03727..644c3417065e 100644
--- a/dbaccess/source/ui/browser/genericcontroller.cxx
+++ b/dbaccess/source/ui/browser/genericcontroller.cxx
@@ -448,7 +448,7 @@ void OGenericUnoController::ImplBroadcastFeatureState(const OUString& _rFeature,
if ( aFeatureCommands.find( elem.aURL.Complete ) != aFeatureCommands.end() )
{
aEvent.FeatureURL = elem.aURL;
- lcl_notifyMultipleStates( *elem.xListener.get(), aEvent, aStates );
+ lcl_notifyMultipleStates( *elem.xListener, aEvent, aStates );
}
}
}