summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-02-12 15:34:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-02-15 08:37:59 +0100
commit881d8470eb9ede52690dbd75c02f72c6ee422261 (patch)
tree991318034ecf2849e2fd531c9b7c421e4249daec /sw/source/core/unocore
parent0ae0b7ff575b4148f9c06abd3bac78d0881ec817 (diff)
loplugin:referencecasting in sw
Change-Id: Ie923fc8baaa26938378407f6e5f3c50b2cea7cca Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110815 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/unocore')
-rw-r--r--sw/source/core/unocore/unofield.cxx2
-rw-r--r--sw/source/core/unocore/unotbl.cxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/unocore/unofield.cxx b/sw/source/core/unocore/unofield.cxx
index e4e0ea629d15..5de1c6bdf11f 100644
--- a/sw/source/core/unocore/unofield.cxx
+++ b/sw/source/core/unocore/unofield.cxx
@@ -2428,7 +2428,7 @@ uno::Any SAL_CALL SwXTextField::getPropertyValue(const OUString& rPropertyName)
= new SwTextAPIObject( std::make_unique<SwTextAPIEditSource>(m_pImpl->m_pDoc) );
}
- uno::Reference<text::XText> xText(m_pImpl->m_xTextObject.get());
+ uno::Reference<text::XText> xText(m_pImpl->m_xTextObject);
aRet <<= xText;
break;
}
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index 60c65acabac0..6392d16cd786 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -2248,7 +2248,7 @@ uno::Reference<table::XCellRange> GetRangeByName(
UnoActionRemoveContext aRemoveContext(rCursor);
rCursor.MakeBoxSels();
// pUnoCursor will be provided and will not be deleted
- return SwXCellRange::CreateXCellRange(pUnoCursor, *pFormat, rDesc).get();
+ return SwXCellRange::CreateXCellRange(pUnoCursor, *pFormat, rDesc);
}
} // namespace
@@ -3108,7 +3108,7 @@ void SwXTextTable::Impl::Notify(const SfxHint& rHint)
}
else
{
- lcl_SendChartEvent(xThis.get(), m_Listeners);
+ lcl_SendChartEvent(xThis, m_Listeners);
}
}
}
@@ -3851,7 +3851,7 @@ void SwXCellRange::Impl::Notify( const SfxHint& rHint )
if (xThis.is())
{ // fdo#72695: if UNO object is already dead, don't revive it with event
if(m_pFrameFormat)
- lcl_SendChartEvent(xThis.get(), m_ChartListeners);
+ lcl_SendChartEvent(xThis, m_ChartListeners);
else
m_ChartListeners.disposeAndClear(lang::EventObject(xThis));
}