summaryrefslogtreecommitdiff
path: root/sd/source/ui/view
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-11-12 12:18:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-11-12 13:55:46 +0100
commit021b7b6684f13853d8bd1a7bcd7273967a2034d9 (patch)
tree0e575d85363c9734e508cdb2e523bac72474e939 /sd/source/ui/view
parente2d333e5f2f99e594bfdafd6ffb6bdcc1c9451d5 (diff)
loplugin:reftotemp in sd
Change-Id: Ib38fdc34dc2112f1aac3914baa074c7574f34f7e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176473 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/view')
-rw-r--r--sd/source/ui/view/Outliner.cxx4
-rw-r--r--sd/source/ui/view/ToolBarManager.cxx2
-rw-r--r--sd/source/ui/view/drtxtob1.cxx6
-rw-r--r--sd/source/ui/view/drviews4.cxx10
-rw-r--r--sd/source/ui/view/drviews7.cxx4
-rw-r--r--sd/source/ui/view/drviewse.cxx4
6 files changed, 15 insertions, 15 deletions
diff --git a/sd/source/ui/view/Outliner.cxx b/sd/source/ui/view/Outliner.cxx
index 38b3128affb1..2439e98d7c82 100644
--- a/sd/source/ui/view/Outliner.cxx
+++ b/sd/source/ui/view/Outliner.cxx
@@ -728,8 +728,8 @@ basegfx::B2DRectangle getPDFSelection(const std::unique_ptr<VectorGraphicSearch>
{
basegfx::B2DRectangle aSelection;
- auto const & rTextRectangles = rVectorGraphicSearch->getTextRectangles();
- if (rTextRectangles.empty())
+ auto const aTextRectangles = rVectorGraphicSearch->getTextRectangles();
+ if (aTextRectangles.empty())
return aSelection;
basegfx::B2DSize aPdfPageSizeHMM = rVectorGraphicSearch->pageSize();
diff --git a/sd/source/ui/view/ToolBarManager.cxx b/sd/source/ui/view/ToolBarManager.cxx
index 0dcb3a1a919a..d5dda2d3ce31 100644
--- a/sd/source/ui/view/ToolBarManager.cxx
+++ b/sd/source/ui/view/ToolBarManager.cxx
@@ -1352,7 +1352,7 @@ void ToolBarShellList::UpdateShells (
if (rpMainViewShell == nullptr)
return;
- const std::shared_ptr<ViewShell>& pCurrentMainViewShell
+ const std::shared_ptr<ViewShell> pCurrentMainViewShell
= rpManager->GetOverridingMainShell() ? rpManager->GetOverridingMainShell() : rpMainViewShell;
GroupedShellList aList;
diff --git a/sd/source/ui/view/drtxtob1.cxx b/sd/source/ui/view/drtxtob1.cxx
index 5c448c88b756..eed3b9662676 100644
--- a/sd/source/ui/view/drtxtob1.cxx
+++ b/sd/source/ui/view/drtxtob1.cxx
@@ -692,12 +692,12 @@ SET_ADJUST:
{
const sal_uInt16 nEEWhich
= aEditAttr.GetPool()->GetWhichIDFromSlotID(nSlot);
- const std::optional<NamedColor>& oColor
+ const std::optional<NamedColor> oColor
= mpViewShell->GetDocSh()->GetRecentColor(nSlot);
if (oColor.has_value())
{
- const model::ComplexColor& rCol = (*oColor).getComplexColor();
- aNewAttr.Put(SvxColorItem(rCol.getFinalColor(), rCol, nEEWhich));
+ const model::ComplexColor aCol = (*oColor).getComplexColor();
+ aNewAttr.Put(SvxColorItem(aCol.getFinalColor(), aCol, nEEWhich));
}
}
break;
diff --git a/sd/source/ui/view/drviews4.cxx b/sd/source/ui/view/drviews4.cxx
index 776546ed9cfc..3611af691081 100644
--- a/sd/source/ui/view/drviews4.cxx
+++ b/sd/source/ui/view/drviews4.cxx
@@ -149,24 +149,24 @@ void DrawViewShell::DeleteActualLayer()
SdrLayerAdmin& rAdmin = GetDoc()->GetLayerAdmin();
sal_uInt16 nId = GetLayerTabControl()->GetCurPageId();
- const OUString& rName = GetLayerTabControl()->GetLayerName(nId);
- if(LayerTabBar::IsRealNameOfStandardLayer(rName))
+ const OUString aName = GetLayerTabControl()->GetLayerName(nId);
+ if(LayerTabBar::IsRealNameOfStandardLayer(aName))
{
assert(false && "Standard layer may not be deleted.");
return;
}
- const OUString& rDisplayName(GetLayerTabControl()->GetPageText(nId));
+ const OUString aDisplayName(GetLayerTabControl()->GetPageText(nId));
OUString aString(SdResId(STR_ASK_DELETE_LAYER));
// replace placeholder
- aString = aString.replaceFirst("$", rDisplayName);
+ aString = aString.replaceFirst("$", aDisplayName);
std::unique_ptr<weld::MessageDialog> xQueryBox(Application::CreateMessageDialog(GetFrameWeld(),
VclMessageType::Question, VclButtonsType::YesNo,
aString));
if (xQueryBox->run() == RET_YES)
{
- const SdrLayer* pLayer = rAdmin.GetLayer(rName);
+ const SdrLayer* pLayer = rAdmin.GetLayer(aName);
mpDrawView->DeleteLayer( pLayer->GetName() );
/* in order to redraw TabBar and Window; should be initiated later on by
diff --git a/sd/source/ui/view/drviews7.cxx b/sd/source/ui/view/drviews7.cxx
index b207a600ff45..3e8ad0a7c922 100644
--- a/sd/source/ui/view/drviews7.cxx
+++ b/sd/source/ui/view/drviews7.cxx
@@ -908,9 +908,9 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet )
if(GetLayerTabControl()) // #i87182#
{
sal_uInt16 nCurrentLayer = GetLayerTabControl()->GetCurPageId();
- const OUString& rName = GetLayerTabControl()->GetLayerName(nCurrentLayer);
+ const OUString aName = GetLayerTabControl()->GetLayerName(nCurrentLayer);
- if (!IsLayerModeActive() || LayerTabBar::IsRealNameOfStandardLayer(rName))
+ if (!IsLayerModeActive() || LayerTabBar::IsRealNameOfStandardLayer(aName))
{
rSet.DisableItem(SID_DELETE_LAYER);
rSet.DisableItem(SID_RENAMELAYER);
diff --git a/sd/source/ui/view/drviewse.cxx b/sd/source/ui/view/drviewse.cxx
index 622dd2cad93c..a096b31da543 100644
--- a/sd/source/ui/view/drviewse.cxx
+++ b/sd/source/ui/view/drviewse.cxx
@@ -1706,10 +1706,10 @@ namespace slideshowhelp
const SfxUInt16Item* pStartingSlide = rReq.GetArg<SfxUInt16Item>(FN_PARAM_1);
const sal_uInt16 nStartingSlide = pStartingSlide ? pStartingSlide->GetValue() - 1 : 0;
SdPage* pSlide = rDoc.GetSdPage(nStartingSlide, PageKind::Standard);
- const OUString& rStartingSlide = pSlide ? pSlide->GetName() : OUString();
+ const OUString aStartingSlide = pSlide ? pSlide->GetName() : OUString();
Sequence< PropertyValue > aArguments{ comphelper::makePropertyValue(u"FirstPage"_ustr,
- rStartingSlide) };
+ aStartingSlide) };
xPresentation->startWithArguments( aArguments );
}
sfx2::SfxNotebookBar::UnlockNotebookBar();