diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-12 15:35:03 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-15 08:39:02 +0100 |
commit | 1c02784889a5b4104878e2c767dff723b2173275 (patch) | |
tree | 59229c54ab7a0a08ea498960f6a16f8444498789 /sc/source/core | |
parent | 948c29710a0bb168ec07e3aca510fa6860f2da52 (diff) |
loplugin:referencecasting in sc
Change-Id: I908c0d5a2a3360bb9c9c9edf925a485411515ea2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110816
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/core')
-rw-r--r-- | sc/source/core/data/attrib.cxx | 2 | ||||
-rw-r--r-- | sc/source/core/tool/addinlis.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/data/attrib.cxx b/sc/source/core/data/attrib.cxx index 1ae01ef1c26f..105c95c6a7ae 100644 --- a/sc/source/core/data/attrib.cxx +++ b/sc/source/core/data/attrib.cxx @@ -395,7 +395,7 @@ bool ScPageHFItem::QueryValue( uno::Any& rVal, sal_uInt8 /* nMemberId */ ) const new ScHeaderFooterContentObj(); xContent->Init(pLeftArea.get(), pCenterArea.get(), pRightArea.get()); - uno::Reference<sheet::XHeaderFooterContent> xCont(xContent.get()); + uno::Reference<sheet::XHeaderFooterContent> xCont(xContent); rVal <<= xCont; return true; diff --git a/sc/source/core/tool/addinlis.cxx b/sc/source/core/tool/addinlis.cxx index 7a9f5d49fd64..56d178eb66b7 100644 --- a/sc/source/core/tool/addinlis.cxx +++ b/sc/source/core/tool/addinlis.cxx @@ -41,7 +41,7 @@ ScAddInListener* ScAddInListener::CreateListener( aAllListeners.push_back( xNew ); if ( xVR.is() ) - xVR->addResultListener( xNew.get() ); // after at least 1 ref exists! + xVR->addResultListener( xNew ); // after at least 1 ref exists! return xNew.get(); } @@ -87,7 +87,7 @@ void ScAddInListener::RemoveDocument( ScDocument* pDocumentP ) if ( p->empty() ) { if ( (*iter)->xVolRes.is() ) - (*iter)->xVolRes->removeResultListener( iter->get() ); + (*iter)->xVolRes->removeResultListener( *iter ); iter = aAllListeners.erase( iter ); continue; |