diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-16 19:59:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-17 07:45:18 +0100 |
commit | 92387abb28b3cf28159577222f1587df027acf31 (patch) | |
tree | 6f675a970a6012dca883913bcea6b612a79ac744 /comphelper | |
parent | 1c9f0d9d8ee1a13d30be924cddaa94343fd8c840 (diff) |
loplugin:referencecasting in comphelper
Change-Id: If826cd7c6818d9cc0662321ff31e0594fe6d48e5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111003
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/misc/docpasswordrequest.cxx | 4 | ||||
-rw-r--r-- | comphelper/source/misc/proxyaggregation.cxx | 2 | ||||
-rw-r--r-- | comphelper/source/property/ChainablePropertySet.cxx | 2 | ||||
-rw-r--r-- | comphelper/source/property/MasterPropertySet.cxx | 2 | ||||
-rw-r--r-- | comphelper/source/property/propertysethelper.cxx | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/comphelper/source/misc/docpasswordrequest.cxx b/comphelper/source/misc/docpasswordrequest.cxx index 56644d4d6e59..6f644336e1e2 100644 --- a/comphelper/source/misc/docpasswordrequest.cxx +++ b/comphelper/source/misc/docpasswordrequest.cxx @@ -108,7 +108,7 @@ Any SAL_CALL SimplePasswordRequest::getRequest() Sequence< Reference< XInteractionContinuation > > SAL_CALL SimplePasswordRequest::getContinuations() { - return { mxAbort.get(), mxPassword.get() }; + return { mxAbort, mxPassword }; } @@ -170,7 +170,7 @@ Any SAL_CALL DocPasswordRequest::getRequest() Sequence< Reference< XInteractionContinuation > > SAL_CALL DocPasswordRequest::getContinuations() { - return { mxAbort.get(), mxPassword.get() }; + return { mxAbort, mxPassword }; } diff --git a/comphelper/source/misc/proxyaggregation.cxx b/comphelper/source/misc/proxyaggregation.cxx index 5efb0f211f76..db580bea496c 100644 --- a/comphelper/source/misc/proxyaggregation.cxx +++ b/comphelper/source/misc/proxyaggregation.cxx @@ -110,7 +110,7 @@ namespace comphelper m_xInner = _rxComponent; // aggregate a proxy for the object - baseAggregateProxyFor( m_xInner.get(), _rRefCount, _rDelegator ); + baseAggregateProxyFor( m_xInner, _rRefCount, _rDelegator ); // add as event listener to the inner context, because we want to be notified of disposals osl_atomic_increment( &_rRefCount ); diff --git a/comphelper/source/property/ChainablePropertySet.cxx b/comphelper/source/property/ChainablePropertySet.cxx index 4694a89c527c..0360c2e03ad1 100644 --- a/comphelper/source/property/ChainablePropertySet.cxx +++ b/comphelper/source/property/ChainablePropertySet.cxx @@ -45,7 +45,7 @@ ChainablePropertySet::~ChainablePropertySet() // XPropertySet Reference< XPropertySetInfo > SAL_CALL ChainablePropertySet::getPropertySetInfo( ) { - return mxInfo.get(); + return mxInfo; } void SAL_CALL ChainablePropertySet::setPropertyValue( const OUString& rPropertyName, const Any& rValue ) diff --git a/comphelper/source/property/MasterPropertySet.cxx b/comphelper/source/property/MasterPropertySet.cxx index e5e94b5ad46f..a06aeb0b5031 100644 --- a/comphelper/source/property/MasterPropertySet.cxx +++ b/comphelper/source/property/MasterPropertySet.cxx @@ -78,7 +78,7 @@ MasterPropertySet::~MasterPropertySet() // XPropertySet Reference< XPropertySetInfo > SAL_CALL MasterPropertySet::getPropertySetInfo( ) { - return mxInfo.get(); + return mxInfo; } void MasterPropertySet::registerSlave ( ChainablePropertySet *pNewSet ) diff --git a/comphelper/source/property/propertysethelper.cxx b/comphelper/source/property/propertysethelper.cxx index de6e914cb859..2c319cd042f2 100644 --- a/comphelper/source/property/propertysethelper.cxx +++ b/comphelper/source/property/propertysethelper.cxx @@ -53,7 +53,7 @@ PropertySetHelper::~PropertySetHelper() throw() // XPropertySet Reference< XPropertySetInfo > SAL_CALL PropertySetHelper::getPropertySetInfo( ) { - return mxInfo.get(); + return mxInfo; } void SAL_CALL PropertySetHelper::setPropertyValue( const OUString& aPropertyName, const Any& aValue ) |