From 1c02784889a5b4104878e2c767dff723b2173275 Mon Sep 17 00:00:00 2001 From: Noel Date: Fri, 12 Feb 2021 15:35:03 +0200 Subject: loplugin:referencecasting in sc Change-Id: I908c0d5a2a3360bb9c9c9edf925a485411515ea2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110816 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/source/ui/navipi/content.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sc/source/ui/navipi') 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 xTreeView, ScNaviga m_xTreeView->connect_popup_menu(LINK(this, ScContentTree, CommandHdl)); m_xTreeView->connect_query_tooltip(LINK(this, ScContentTree, QueryTooltipHdl)); - rtl::Reference xHelper(m_xTransferObj.get()); + rtl::Reference 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 xHelper(pTransferObj.get()); + rtl::Reference 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 xHelper(pTransferObj.get()); + rtl::Reference 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 xHelper(m_xTransferObj.get()); + rtl::Reference xHelper(m_xTransferObj); m_xTreeView->enable_drag_source(xHelper, DND_ACTION_COPY | DND_ACTION_LINK); bDisallow = false; -- cgit