summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-10-10 14:13:55 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-10-10 19:45:34 +0200
commitfa311ad62f935d6469b77936d477125d98dbee60 (patch)
treed712ee8e0e16065923fefba70f433e760a6627b6 /sd
parent6af0da482d8d387f181cb9c2cf9301859c9683cb (diff)
loplugin:moveparam in svx
Change-Id: I2e422235129f810feea5c17afa1332d8b7ac14ed Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123332 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/view/Outliner.cxx4
-rw-r--r--sd/source/ui/view/drviews2.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/ui/view/Outliner.cxx b/sd/source/ui/view/Outliner.cxx
index 0ebe41c8e630..0f77f2070219 100644
--- a/sd/source/ui/view/Outliner.cxx
+++ b/sd/source/ui/view/Outliner.cxx
@@ -854,7 +854,7 @@ bool SdOutliner::SearchAndReplaceOnce(std::vector<sd::SearchSelection>* pSelecti
basegfx::B2DRectangle aSubSelection = getPDFSelection(rVectorGraphicSearchContext.mpVectorGraphicSearch, mpObj);
if (!aSubSelection.isEmpty())
aSubSelections.push_back(aSubSelection);
- mpView->MarkObj(mpObj, pPageView, false, false, aSubSelections);
+ mpView->MarkObj(mpObj, pPageView, false, false, std::move(aSubSelections));
}
else
{
@@ -1276,7 +1276,7 @@ void SdOutliner::ProvideNextTextObject()
if (!aSubSelection.isEmpty())
aSubSelections.push_back(aSubSelection);
- mpView->MarkObj(mpObj, pPageView, false, false, aSubSelections);
+ mpView->MarkObj(mpObj, pPageView, false, false, std::move(aSubSelections));
mpDrawDocument->GetDocSh()->SetWaitCursor( false );
}
diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx
index d73f2aa6ae2c..b951231f2c5b 100644
--- a/sd/source/ui/view/drviews2.cxx
+++ b/sd/source/ui/view/drviews2.cxx
@@ -1652,7 +1652,7 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq)
ClassificationCollector aCollector(*this);
aCollector.collect();
- xDialog->setupValues(aCollector.getResults());
+ xDialog->setupValues(std::vector(aCollector.getResults()));
if (RET_OK == xDialog->run())
{