summaryrefslogtreecommitdiff
path: root/sc/source/ui/navipi
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-02-12 15:35:03 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-02-15 08:39:02 +0100
commit1c02784889a5b4104878e2c767dff723b2173275 (patch)
tree59229c54ab7a0a08ea498960f6a16f8444498789 /sc/source/ui/navipi
parent948c29710a0bb168ec07e3aca510fa6860f2da52 (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/ui/navipi')
-rw-r--r--sc/source/ui/navipi/content.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx
index 27308f4bc9eb..823ea306ae87 100644
--- a/sc/source/ui/navipi/content.cxx
+++ b/sc/source/ui/navipi/content.cxx
@@ -142,7 +142,7 @@ ScContentTree::ScContentTree(std::unique_ptr<weld::TreeView> xTreeView, ScNaviga
m_xTreeView->connect_popup_menu(LINK(this, ScContentTree, CommandHdl));
m_xTreeView->connect_query_tooltip(LINK(this, ScContentTree, QueryTooltipHdl));
- rtl::Reference<TransferDataContainer> xHelper(m_xTransferObj.get());
+ rtl::Reference<TransferDataContainer> xHelper(m_xTransferObj);
m_xTreeView->enable_drag_source(xHelper, DND_ACTION_COPY | DND_ACTION_LINK);
m_xTreeView->connect_drag_begin(LINK(this, ScContentTree, DragBeginHdl));
@@ -1175,7 +1175,7 @@ static bool lcl_DoDragObject( ScDocShell* pSrcShell, std::u16string_view rName,
SC_MOD()->SetDragObject( nullptr, pTransferObj.get() );
- rtl::Reference<TransferDataContainer> xHelper(pTransferObj.get());
+ rtl::Reference<TransferDataContainer> xHelper(pTransferObj);
rTreeView.enable_drag_source(xHelper, DND_ACTION_COPY | DND_ACTION_LINK);
bDisallow = false;
@@ -1215,7 +1215,7 @@ static bool lcl_DoDragCells( ScDocShell* pSrcShell, const ScRange& rRange, ScDra
SC_MOD()->SetDragObject( pTransferObj.get(), nullptr ); // for internal D&D
- rtl::Reference<TransferDataContainer> xHelper(pTransferObj.get());
+ rtl::Reference<TransferDataContainer> xHelper(pTransferObj);
rTreeView.enable_drag_source(xHelper, DND_ACTION_COPY | DND_ACTION_LINK);
bDisallow = false;
@@ -1369,7 +1369,7 @@ IMPL_LINK(ScContentTree, DragBeginHdl, bool&, rUnsetDragIcon, bool)
if (!aLinkURL.isEmpty())
m_xTransferObj->SetLinkURL(aLinkURL, aLinkText);
- rtl::Reference<TransferDataContainer> xHelper(m_xTransferObj.get());
+ rtl::Reference<TransferDataContainer> xHelper(m_xTransferObj);
m_xTreeView->enable_drag_source(xHelper, DND_ACTION_COPY | DND_ACTION_LINK);
bDisallow = false;