[Libreoffice-commits] core.git: comphelper/source
Noel (via logerrit)
logerrit at kemper.freedesktop.org
Wed Feb 17 06:46:04 UTC 2021
comphelper/source/misc/docpasswordrequest.cxx | 4 ++--
comphelper/source/misc/proxyaggregation.cxx | 2 +-
comphelper/source/property/ChainablePropertySet.cxx | 2 +-
comphelper/source/property/MasterPropertySet.cxx | 2 +-
comphelper/source/property/propertysethelper.cxx | 2 +-
5 files changed, 6 insertions(+), 6 deletions(-)
New commits:
commit 92387abb28b3cf28159577222f1587df027acf31
Author: Noel <noel.grandin at collabora.co.uk>
AuthorDate: Tue Feb 16 19:59:44 2021 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Wed Feb 17 07:45:18 2021 +0100
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 at collabora.co.uk>
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 )
More information about the Libreoffice-commits
mailing list