diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-21 21:16:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-23 07:27:51 +0000 |
commit | 3e7ff2a908c577b52ee0707435fb409765c37545 (patch) | |
tree | e77dee46c07792d7134d3e27d007f7b42613cc09 /sc/source/ui/app/transobj.cxx | |
parent | c04434a58407f76ab378b6a991b23f1aaf534f86 (diff) |
XUnoTunnel->dynamic_cast in ScCellRangesBase
Change-Id: Iac62a8ed51d21cc2ef957b3e4811554b62cdb0d1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145982
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/app/transobj.cxx')
-rw-r--r-- | sc/source/ui/app/transobj.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sc/source/ui/app/transobj.cxx b/sc/source/ui/app/transobj.cxx index 3bba033d28e7..d0fbd02fce43 100644 --- a/sc/source/ui/app/transobj.cxx +++ b/sc/source/ui/app/transobj.cxx @@ -635,9 +635,8 @@ ScDocument* ScTransferObj::GetSourceDocument() ScDocShell* ScTransferObj::GetSourceDocShell() { - ScCellRangesBase* pRangesObj = comphelper::getFromUnoTunnel<ScCellRangesBase>( m_xDragSourceRanges ); - if (pRangesObj) - return pRangesObj->GetDocShell(); + if (m_xDragSourceRanges) + return m_xDragSourceRanges->GetDocShell(); return nullptr; // none set } @@ -645,10 +644,9 @@ ScDocShell* ScTransferObj::GetSourceDocShell() ScMarkData ScTransferObj::GetSourceMarkData() const { ScMarkData aMarkData(m_pDoc->GetSheetLimits()); - ScCellRangesBase* pRangesObj = comphelper::getFromUnoTunnel<ScCellRangesBase>( m_xDragSourceRanges ); - if (pRangesObj) + if (m_xDragSourceRanges) { - const ScRangeList& rRanges = pRangesObj->GetRangeList(); + const ScRangeList& rRanges = m_xDragSourceRanges->GetRangeList(); aMarkData.MarkFromRangeList( rRanges, false ); } return aMarkData; |