From 021b7b6684f13853d8bd1a7bcd7273967a2034d9 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 12 Nov 2024 12:18:12 +0200 Subject: loplugin:reftotemp in sd Change-Id: Ib38fdc34dc2112f1aac3914baa074c7574f34f7e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176473 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sd/source/ui/dlg/navigatr.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sd/source/ui/dlg/navigatr.cxx') diff --git a/sd/source/ui/dlg/navigatr.cxx b/sd/source/ui/dlg/navigatr.cxx index 4e8d1c7a290e..d4f189277fd7 100644 --- a/sd/source/ui/dlg/navigatr.cxx +++ b/sd/source/ui/dlg/navigatr.cxx @@ -367,13 +367,13 @@ IMPL_LINK_NOARG(SdNavigatorWin, ClickObjectHdl, weld::TreeView&, bool) // Page entries in the tree have id value 1. Object entries have id value of // the address of the pointer to the object. - const auto& rCursorEntryId = mxTlbObjects->get_cursor_id(); - auto nCursorEntryId = rCursorEntryId.toInt64(); - SdrObject* pCursorEntryObject = weld::fromId(rCursorEntryId); + const auto aCursorEntryId = mxTlbObjects->get_cursor_id(); + auto nCursorEntryId = aCursorEntryId.toInt64(); + SdrObject* pCursorEntryObject = weld::fromId(aCursorEntryId); bool bIsCursorEntrySelected(std::find(vSelectedEntryIds.begin(), vSelectedEntryIds.end(), - rCursorEntryId) != vSelectedEntryIds.end()); + aCursorEntryId) != vSelectedEntryIds.end()); if (bIsCursorEntrySelected) { -- cgit